diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index cd5f69ba95dddca2eaf6c1a569d8635a9118e445..b0ad7dd35c6d03933e0c1f521fa3a42744290e0b 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');