From 17d288dd29669dacd4b763d7828c543fb5d3421d Mon Sep 17 00:00:00 2001 From: thomas-Ngr Date: Sun, 15 Oct 2023 20:20:08 +0200 Subject: [PATCH] Add hook printFieldListSearchParam on project list (#26214) Co-authored-by: Laurent Destailleur --- htdocs/projet/list.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php index d57470e3c58..13a042197d5 100644 --- a/htdocs/projet/list.php +++ b/htdocs/projet/list.php @@ -1005,6 +1005,11 @@ foreach ($searchCategoryCustomerList as $searchCategoryCustomer) { // Add $param from extra fields include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php'; +// Add $param from hooks +$parameters = array(); +$reshook = $hookmanager->executeHooks('printFieldListSearchParam', $parameters, $object, $action); // Note that $action and $object may have been modified by hook +$param .= $hookmanager->resPrint; + // List of mass actions available $arrayofmassactions = array( 'validate'=>img_picto('', 'check', 'class="pictofixedwidth"').$langs->trans("Validate"),