Merge pull request #8971 from atm-ph/fix_7.0_hook_getnomurltooltip

Fix can't add an attribute simply
This commit is contained in:
Laurent Destailleur 2018-06-18 11:13:29 +02:00 committed by GitHub
commit 9cfc4a8d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2010,7 +2010,7 @@ class Societe extends CommonObject
$hookmanager=new HookManager($this->db);
}
$hookmanager->initHooks(array('societedao'));
$parameters=array('id'=>$this->id);
$parameters=array('id'=>$this->id, 'linkclose'=>$linkclose);
$reshook=$hookmanager->executeHooks('getnomurltooltip',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
if ($reshook > 0) $linkclose = $hookmanager->resPrint;
}