Skip to content
Snippets Groups Projects
Commit 9cdfaa3f authored by Gauthier's avatar Gauthier
Browse files

add hook "doActions" on supplierprice form

parent 8f3e9b18
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,11 @@ $result=restrictedArea($user,'produit|service&fournisseur',$fieldvalue,'product& ...@@ -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 // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('pricesuppliercard')); $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'); $sortfield = GETPOST("sortfield",'alpha');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment