Skip to content
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

Update objectline_create.tpl.php extra hooks for extra fields #31012

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

fbosman
Copy link
Contributor

@fbosman fbosman commented Sep 18, 2024

NEW Add hooks to objectline_create

In order to act on the selection of the product I added two hooks: one on the event of the product selected and one on the event of the extra-field selected.
This way we are able to add extra functionality on the selection of product cq the extrafield.

In order to act on the selection of the product I added two hooks: one on the event of the product selected and
one on the event of the extra-field selected. 
This way we are able to add extra functionality on the selection of product cq the extrafield.
@@ -1073,6 +1073,8 @@ function(data) {
} else { jQuery("#pbq").val(''); }
<?php
}
$reshook = $hookmanager->executeHooks('objectlinecreatesupplierorderproductselected', $parameters, $object, $action);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the name of hook is also a php function, can you use the camelCase syntax for the name ofthe hook...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@eldy eldy added the PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do) label Sep 20, 2024
camelCase syntax for the name ofthe hook applied
@fbosman fbosman requested a review from eldy September 20, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR to fix - See feedback in comments PR needs to be fixed to be integrated (some comments should describes the fix to do)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants