FIX : marginInfos array should be used by reference to allow to update it with a hook without draw again margin table

This commit is contained in:
Gauthier PC portable 024 2021-12-14 12:25:43 +01:00
parent 582caf0e7a
commit b971efb062

View File

@ -213,7 +213,7 @@ class FormMargin
$marginInfo = $this->getMarginInfosArray($object, $force_price);
$parameters=array('marginInfo'=>$marginInfo);
$parameters=array('marginInfo'=>&$marginInfo);
$reshook = $hookmanager->executeHooks('displayMarginInfos', $parameters, $object, $action);
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');