|
@@ -1377,7 +1377,7 @@ class FactureFournisseurRec extends CommonInvoice
|
|
|
*/
|
|
|
public function getNomUrl($withpicto = 0, $option = '', $max = 0, $short = 0, $moretitle = '', $notooltip = '', $save_lastsearch_value = -1)
|
|
|
{
|
|
|
- global $langs;
|
|
|
+ global $langs, $hookmanager;
|
|
|
|
|
|
$result = '';
|
|
|
|
|
@@ -1429,7 +1429,15 @@ class FactureFournisseurRec extends CommonInvoice
|
|
|
$result .= $this->ref;
|
|
|
}
|
|
|
$result .= $linkend;
|
|
|
-
|
|
|
+ global $action;
|
|
|
+ $hookmanager->initHooks(array($this->element . 'dao'));
|
|
|
+ $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;
|
|
|
}
|
|
|
|