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:
parent
582caf0e7a
commit
b971efb062
@ -213,7 +213,7 @@ class FormMargin
|
|||||||
|
|
||||||
$marginInfo = $this->getMarginInfosArray($object, $force_price);
|
$marginInfo = $this->getMarginInfosArray($object, $force_price);
|
||||||
|
|
||||||
$parameters=array('marginInfo'=>$marginInfo);
|
$parameters=array('marginInfo'=>&$marginInfo);
|
||||||
$reshook = $hookmanager->executeHooks('displayMarginInfos', $parameters, $object, $action);
|
$reshook = $hookmanager->executeHooks('displayMarginInfos', $parameters, $object, $action);
|
||||||
if ($reshook < 0) {
|
if ($reshook < 0) {
|
||||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user