Merge pull request #14619 from atm-john/11.0_fix_missing_param_for_hook

FIX missing param for hook
This commit is contained in:
Laurent Destailleur 2020-09-03 12:24:56 +02:00 committed by GitHub
commit b0a15f958f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;