FIX wrong hooks name

This commit is contained in:
Regis Houssin 2022-03-16 19:22:48 +01:00
parent 629028a435
commit 7437be3578

View File

@ -106,7 +106,7 @@ if (empty($user->rights->fournisseur->lire)) {
}
// Add where from hooks
$parameters = array('socid' => $socid);
$reshook = $hookmanager->executeHooks('printFieldListWhereForStatisticArea', $parameters); // Note that $action and $object may have been modified by hook
$reshook = $hookmanager->executeHooks('printFieldListWhere', $parameters); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
if ($socid > 0) {
$sql .= " AND s.rowid = ".((int) $socid);
@ -295,7 +295,7 @@ if (empty($user->rights->fournisseur->lire)) {
}
// Add where from hooks
$parameters = array('socid' => $socid);
$reshook = $hookmanager->executeHooks('printFieldListWhereForLatestModified', $parameters); // Note that $action and $object may have been modified by hook
$reshook = $hookmanager->executeHooks('printFieldListWhere', $parameters); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
if ($socid > 0) {
$sql .= " AND s.rowid = ".((int) $socid);