Fix missing param for hook
This commit is contained in:
parent
e52d71a880
commit
c17bc8b3c8
@ -2412,7 +2412,15 @@ class Societe extends CommonObject
|
|||||||
|
|
||||||
global $action;
|
global $action;
|
||||||
$hookmanager->initHooks(array('thirdpartydao'));
|
$hookmanager->initHooks(array('thirdpartydao'));
|
||||||
$parameters = array('id'=>$this->id, 'getnomurl'=>$result);
|
$parameters = array(
|
||||||
|
'id'=>$this->id,
|
||||||
|
'getnomurl'=>$result,
|
||||||
|
'withpicto '=> $withpicto,
|
||||||
|
'option'=> $option,
|
||||||
|
'maxlen'=> $maxlen,
|
||||||
|
'notooltip'=> $notooltip,
|
||||||
|
'save_lastsearch_value'=> $save_lastsearch_value
|
||||||
|
);
|
||||||
$reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
$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;
|
if ($reshook > 0) $result = $hookmanager->resPrint;
|
||||||
else $result .= $hookmanager->resPrint;
|
else $result .= $hookmanager->resPrint;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user