Merge pull request #24206 from noec764/14_AddContextFor_selectForFormsListWhere_hook

FIX: Add more context for selectForFormsListWhere Hook
This commit is contained in:
Laurent Destailleur 2023-03-18 02:35:57 +01:00 committed by GitHub
commit 05de5d7e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6782,7 +6782,13 @@ class Form
}
// Add where from hooks
$parameters = array();
$parameters = array(
'object' => $objecttmp,
'htmlname' => $htmlname,
'filter' => $filter,
'searchkey' => $searchkey
);
$reshook = $hookmanager->executeHooks('selectForFormsListWhere', $parameters); // Note that $action and $object may have been modified by hook
if (!empty($hookmanager->resPrint)) {
$sql .= $hookmanager->resPrint;