[Task #1481] Enable BILL_SUPPLIER_MODIFY trigger

This commit is contained in:
KreizIT 2014-07-11 23:40:17 +02:00
parent d27ec6306c
commit ff19a87941
2 changed files with 4 additions and 5 deletions

View File

@ -47,6 +47,7 @@ For developers:
- New: Add trigger DON_UPDATE, DON_DELETE
- New: Add country iso code on 3 chars into table of countries.
- Qual: Removed hard coded rowid into data init of table llx_c_action_trigger.
- New: [ Task #1481 ] Add trigger BILL_SUPPLIER_MODIFY.
WARNING: Following change may create regression for some external modules, but was necessary to make
Dolibarr better:

View File

@ -601,11 +601,9 @@ class FactureFournisseur extends CommonInvoice
{
if (! $notrigger)
{
// Call triggers
//include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
//$interface=new Interfaces($this->db);
//$result=$interface->run_triggers('BILL_SUPPLIER_MODIFY',$this,$user,$langs,$conf);
//if ($result < 0) { $error++; $this->errors=$interface->errors; }
// Call trigger
$result=$this->call_trigger('BILL_SUPPLIER_MODIFY',$user);
if ($result < 0) $error++;
// End call triggers
}
}