Fix: Missing the hook init

This commit is contained in:
Laurent Destailleur 2014-12-07 15:12:32 +01:00
parent a59ac280bc
commit a4a7489a54

View File

@ -76,11 +76,18 @@ $langs->load("orders");
$langs->load("suppliers");
$langs->load("propal");
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('consumptionthirdparty'));
/*
* Actions
*/
$parameters=array('id'=>$socid);
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
/*