From 9cdfaa3ffed96a8c8aebb2997fc62f8a7af8f713 Mon Sep 17 00:00:00 2001 From: Gauthier <gauthier.verdol@atm-consulting.fr> Date: Tue, 4 Feb 2014 10:48:35 +0100 Subject: [PATCH] add hook "doActions" on supplierprice form --- htdocs/product/fournisseurs.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index cd5f69ba95d..b0ad7dd35c6 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -60,6 +60,11 @@ $result=restrictedArea($user,'produit|service&fournisseur',$fieldvalue,'product& // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array $hookmanager->initHooks(array('pricesuppliercard')); +$product = new ProductFournisseur($db); +$product->fetch($id); + +$reshook=$hookmanager->executeHooks('doActions',$parameters,$product,$action); // Note that $action and $object may have been modified by some hooks +$error=$hookmanager->error; $errors=$hookmanager->errors; $sortfield = GETPOST("sortfield",'alpha'); -- GitLab