From 7437be35789e820e8e097ee8456ca979cf1e7d8a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 16 Mar 2022 19:22:48 +0100 Subject: [PATCH] FIX wrong hooks name --- htdocs/societe/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php index 49d45b682c5..d3960ee784b 100644 --- a/htdocs/societe/index.php +++ b/htdocs/societe/index.php @@ -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);