Merge pull request #14619 from atm-john/11.0_fix_missing_param_for_hook
FIX missing param for hook
This commit is contained in:
commit
b0a15f958f
@ -2412,7 +2412,15 @@ class Societe extends CommonObject
|
||||
|
||||
global $action;
|
||||
$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
|
||||
if ($reshook > 0) $result = $hookmanager->resPrint;
|
||||
else $result .= $hookmanager->resPrint;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user