Fix: rename hooks

This commit is contained in:
Regis Houssin 2012-03-01 16:51:59 +01:00
parent 2d3854a622
commit addc8db9e7
3 changed files with 7 additions and 6 deletions

View File

@ -62,7 +62,7 @@ $result = restrictedArea($user, 'commande_fournisseur', $id,'');
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php');
$hookmanager=new HookManager($db);
$hookmanager->callHooks(array('fournordercard'));
$hookmanager->callHooks(array('ordersuppliercard'));
$mesg='';
@ -1330,7 +1330,7 @@ if ($id > 0 || ! empty($ref))
if (is_object($hookmanager))
{
$parameters=array('filtre'=>$filtre);
echo $hookmanager->executeHooks('formCreateProductFournOptions',$parameters,$object,$action);
echo $hookmanager->executeHooks('formCreateProductSupplierOptions',$parameters,$object,$action);
}
// Editor wysiwyg

View File

@ -53,7 +53,7 @@ $result = restrictedArea($user, 'fournisseur', $id, 'facture_fourn', 'facture');
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php');
$hookmanager=new HookManager($db);
$hookmanager->callHooks(array('fournpricecard'));
$hookmanager->callHooks(array('invoicesuppliercard'));
$object=new FactureFournisseur($db);
@ -1652,7 +1652,7 @@ else
if (is_object($hookmanager))
{
$parameters=array('filtre'=>$filtre);
echo $hookmanager->executeHooks('formCreateProductOptions',$parameters,$object,$action);
echo $hookmanager->executeHooks('formCreateProductSupplierOptions',$parameters,$object,$action);
}
print '</td>';

View File

@ -53,10 +53,11 @@ $fieldvalue = (! empty($id) ? $id : (! empty($ref) ? $ref : ''));
$fieldtype = (! empty($ref) ? 'ref' : 'rowid');
if ($user->societe_id) $socid=$user->societe_id;
$result=restrictedArea($user,'produit|service&fournisseur',$fieldvalue,'product&product','','',$fieldtype);
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
include_once(DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php');
$hookmanager=new HookManager($db);
$hookmanager->callHooks(array('fournpricecard'));
$hookmanager->callHooks(array('pricesuppliercard'));
$sortfield = GETPOST("sortfield",'alpha');
@ -283,7 +284,7 @@ if ($id || $ref)
if (is_object($hookmanager))
{
$parameters=array('filtre'=>"fournisseur=1",'html_name'=>'id_fourn','selected'=>GETPOST("id_fourn"),'showempty'=>1,'prod_id'=>$product->id);
echo $hookmanager->executeHooks('formCreateCompagnyOptions',$parameters,$object,$action);
echo $hookmanager->executeHooks('formCreateThirdpartyOptions',$parameters,$object,$action);
}
}
print '</td></tr>';