add invoice getNomUrl hook

This commit is contained in:
Alexis LAURIER 2021-03-18 10:43:26 +01:00
parent 4b9f71d20e
commit c33347b461

View File

@ -1504,6 +1504,13 @@ class Facture extends CommonInvoice
}
}
global $action;
$hookmanager->initHooks(array('invoicedao'));
$parameters = array('id'=>$this->id, 'getnomurl'=>$result, 'notooltip' => $notooltip, 'addlinktonotes' => $addlinktonotes, 'save_lastsearch_value'=> $save_lastsearch_value, 'target' => $target);
$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;
}