From a4a7489a541aea8c04f9f9854b3189ac124569dd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 7 Dec 2014 15:12:32 +0100 Subject: [PATCH] Fix: Missing the hook init --- htdocs/societe/consumption.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php index d5ef1af6dbb..f8b5829b03e 100644 --- a/htdocs/societe/consumption.php +++ b/htdocs/societe/consumption.php @@ -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'); + /*