Merge pull request #1522 from GPCsolutions/triggernames
Qual: keep trigger naming consistent
This commit is contained in:
commit
637b47cd08
@ -203,7 +203,7 @@ class ProductFournisseur extends Product
|
|||||||
// Appel des triggers
|
// Appel des triggers
|
||||||
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
|
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
|
||||||
$interface=new Interfaces($this->db);
|
$interface=new Interfaces($this->db);
|
||||||
$result=$interface->run_triggers('UPDATE_BUYPRICE',$this,$user,$langs,$conf);
|
$result=$interface->run_triggers('BUYPRICE_UPDATE',$this,$user,$langs,$conf);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$error++; $this->error=$interface->errors;
|
$error++; $this->error=$interface->errors;
|
||||||
@ -289,7 +289,7 @@ class ProductFournisseur extends Product
|
|||||||
// Appel des triggers
|
// Appel des triggers
|
||||||
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
|
include_once(DOL_DOCUMENT_ROOT . "/core/class/interfaces.class.php");
|
||||||
$interface=new Interfaces($this->db);
|
$interface=new Interfaces($this->db);
|
||||||
$result=$interface->run_triggers('CREATE_BUYPRICE',$this,$user,$langs,$conf);
|
$result=$interface->run_triggers('BUYPRICE_CREATE',$this,$user,$langs,$conf);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$error++; $this->error=$interface->errors;
|
$error++; $this->error=$interface->errors;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user