|
@@ -838,7 +838,7 @@ class BOM extends CommonObject
|
|
|
|
|
|
global $action, $hookmanager;
|
|
|
$hookmanager->initHooks(array('bomdao'));
|
|
|
- $parameters = array('id'=>$this->id, 'getnomurl'=>$result);
|
|
|
+ $parameters = array('id'=>$this->id, 'getnomurl' => &$result);
|
|
|
$reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
|
|
if ($reshook > 0) {
|
|
|
$result = $hookmanager->resPrint;
|
|
@@ -1444,7 +1444,7 @@ class BOMLine extends CommonObjectLine
|
|
|
|
|
|
global $action, $hookmanager;
|
|
|
$hookmanager->initHooks(array('bomlinedao'));
|
|
|
- $parameters = array('id'=>$this->id, 'getnomurl'=>$result);
|
|
|
+ $parameters = array('id'=>$this->id, 'getnomurl' => &$result);
|
|
|
$reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
|
|
if ($reshook > 0) {
|
|
|
$result = $hookmanager->resPrint;
|