FIX: Add more context for selectForFormsListWhere Hook

This commit is contained in:
Noé Courtier 2023-03-14 11:43:36 +01:00
parent 5395a4ab4b
commit 645b0c563e

View File

@ -6782,7 +6782,13 @@ class Form
}
// Add where from hooks
$parameters = array();
$parameters = [
'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;