Skip to content

Commit

Permalink
FIX: propal createFrom hook: undefined parameter attached
Browse files Browse the repository at this point in the history
  • Loading branch information
ATM-Marc committed Jul 16, 2019
1 parent 8b0b824 commit 464bda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/comm/propal/class/propal.class.php
Expand Up @@ -1316,9 +1316,9 @@ function createFromClone($socid=0)
// 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++;
}
}
Expand Down

0 comments on commit 464bda9

Please sign in to comment.