-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Hooks in bookkeeping card #28737
Conversation
Can you describe the use case you have that need a hook before actions ? |
For my module "Bookkeeping Template" I only use "onConfirmCreate_onAfterCreateEmptyLine" and "onCreate_onAfterShowFields" If you want me to delete some hooks, juste let me know. |
Hello, |
I can't find any hook onBeforeActions on modulebuilder template. |
Yes, this is the doActions. As there is one hook before action and one after action, i find the name "onBeforeAction" more clear. You want me to change ? |
If you need to make code before any action, why don't you use the hook doAction ? |
Je ne comprends pas bien le but de cette discussion.
J'ai aussi ajouté les hooks suivants :
|
PR must be atomic: See CONTRIBUTING.md file (adding several hooks at different places reduce probability to have the PR merged) For exemple here PR is blocked due to bad name of hook: The name of hook to manage actions is "doAction" (executed before any common action), even if name is not fantastic, it is the one used everywhere, so we must reuse the same if we introduce it on a page that does not have it. |
Now, it's clear. |
NEW|New Adding Hooks in bookkeeping card