Update fournisseur.facture.class.php

This commit is contained in:
Frédéric FRANCE 2022-02-15 11:18:14 +01:00 committed by GitHub
parent c474ee216f
commit 0feb6e8275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2814,7 +2814,15 @@ class FactureFournisseur extends CommonInvoice
$result .= '</span>';
}
}
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;
}