Skip to content

Commit

Permalink
fix(services-list): added missing hook printFieldListSearchParam
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-irvine committed Jan 29, 2025
1 parent 513690e commit e85a5a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog_Koesio.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Backported from 17.0 :
- Backport 17.0 PR #32850 : Added missing printFieldListSearchParam hook in services_list
- Backport 17.0 PR #32834 : Added missing printFieldListWhere hook in services_list
- Backport develop PR #32662 : New hooks in services_list and added global search
- Backport 17.0 PR #32654 : Search thirdparty in services list
Expand Down
7 changes: 7 additions & 0 deletions htdocs/contrat/services_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,13 @@
}
// Add $param from extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
/** BACKPORT PR #32850 */
// 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;
/** BACKPORT PR #32850 */


// List of mass actions available
$arrayofmassactions = array(
Expand Down

0 comments on commit e85a5a9

Please sign in to comment.