fix merge

This commit is contained in:
Frédéric FRANCE 2022-02-15 18:46:41 +01:00
parent a613553f37
commit dad73b755e
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
2 changed files with 1 additions and 7 deletions

View File

@ -2284,7 +2284,7 @@ class Adherent extends CommonObject
}
global $action;
$hookmanager->initHooks(array($this->element . 'dao'));
$parameters = array('id'=>$this->id, 'getnomurl'=>$result);
$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;

View File

@ -360,14 +360,8 @@ class Asset extends CommonObject
}
$result .= $linkend;
//if ($withpicto != 2) $result.=(($addlabel && $this->label) ? $sep . dol_trunc($this->label, ($addlabel > 1 ? $addlabel : 0)) : '');
<<<<<<< HEAD
global $action;
$hookmanager->initHooks(array($this->element . 'dao'));
=======
global $action;
$hookmanager->initHooks(array('assetdao'));
>>>>>>> hookgetnomurl
$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) {