fix for reshook when several module use the hook but only on is concerned

This commit is contained in:
Christophe Battarel 2022-04-28 11:49:15 +02:00
parent 25078b292d
commit 75f540c30c

View File

@ -1810,7 +1810,7 @@ class Product extends CommonObject
// Note that $action and $object may have been modified by some hooks
global $action;
$reshook = $hookmanager->executeHooks('getSellPrice', $parameters, $this, $action);
if ( ! empty($reshook)) {
if ( ! empty($hookmanager->resArray)) {
return $hookmanager->resArray;
}