Merge pull request #19616 from atm-gauthier/fix_param_used_by_reference

FIX : marginInfos array should be used by reference to allow to updat…
This commit is contained in:
Laurent Destailleur 2021-12-16 17:31:00 +01:00 committed by GitHub
commit 726fa41650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');