add hook in propal tooltip

This commit is contained in:
Frédéric FRANCE 2022-02-15 10:53:33 +01:00 committed by GitHub
parent c90f9b5681
commit b2815c4973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3690,6 +3690,15 @@ class Propal extends CommonObject
}
}
global $action;
$hookmanager->initHooks(array('propaldao'));
$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;
} else {
$result .= $hookmanager->resPrint;
}
return $result;
}