Skip to content

Commit

Permalink
More consistency trigger name
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 2, 2014
1 parent 637b47c commit 0e23892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/fourn/class/fournisseur.product.class.php
Expand Up @@ -203,7 +203,7 @@ function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $avai
// Appel des triggers
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
$interface=new Interfaces($this->db);
$result=$interface->run_triggers('BUYPRICE_UPDATE',$this,$user,$langs,$conf);
$result=$interface->run_triggers('SUPPLIER_PRODUCT_BUYPRICE_UPDATE',$this,$user,$langs,$conf);
if ($result < 0)
{
$error++; $this->error=$interface->errors;
Expand Down Expand Up @@ -289,7 +289,7 @@ function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $avai
// Appel des triggers
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
$interface=new Interfaces($this->db);
$result=$interface->run_triggers('BUYPRICE_CREATE',$this,$user,$langs,$conf);
$result=$interface->run_triggers('SUPPLIER_PRODUCT_BUYPRICE_CREATE',$this,$user,$langs,$conf);
if ($result < 0)
{
$error++; $this->error=$interface->errors;
Expand Down

0 comments on commit 0e23892

Please sign in to comment.