Adding hooks on product stat in order to allow to expand stat on other modules

stickler-ci test corrections
This commit is contained in:
MOREAU FRANCK 2021-06-09 08:39:06 +02:00
parent 4b8dfc1abe
commit a141d722ad

View File

@ -559,11 +559,12 @@ function show_stats_for_company($product, $socid)
print '</tr>';
}
$parameters = array('socid'=>$socid);
$reshook = $hookmanager->executeHooks('addmoreproductstat', $parameters, $product,$nblines); // Note that $action and $object may have been modified by some hooks
$reshook = $hookmanager->executeHooks('addmoreproductstat', $parameters, $product, $nblines); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
print $hookmanager->resPrint;
return $nblines++;
}