Merge pull request #11518 from ATM-Marc/FIX_9.0_propal_clone_hook

FIX: propal createFrom hook: undefined parameter attached
This commit is contained in:
Laurent Destailleur 2019-07-16 17:04:53 +03:00 committed by GitHub
commit 77300e1210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1316,9 +1316,9 @@ class Propal extends CommonObject
// Hook of thirdparty module
if (is_object($hookmanager))
{
$parameters=array('objFrom'=>$this,'clonedObj'=>$clonedObj);
$parameters=array('objFrom'=>$this,'clonedObj'=>$object);
$action='';
$reshook=$hookmanager->executeHooks('createFrom',$parameters,$clonedObj,$action); // Note that $action and $object may have been modified by some hooks
$reshook=$hookmanager->executeHooks('createFrom',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) $error++;
}
}