can modify tooltip by reference

This commit is contained in:
Frédéric FRANCE 2021-11-22 20:08:21 +01:00
parent c01cc0c212
commit e562bf5b1c
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -550,7 +550,7 @@ class AccountingAccount extends CommonObject
$result .= $linkstart . $label_link . $linkend;
}
global $action;
$hookmanager->initHooks(array('accountingjournaldao'));
$hookmanager->initHooks(array('accountingaccountdao'));
$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) {