fix notrigger ignored on BILL_CREATE

This commit is contained in:
TuxGasy 2018-04-04 20:32:36 +02:00
parent 7d5c3a5c4f
commit e5664f9630

View File

@ -694,10 +694,16 @@ class Facture extends CommonInvoice
}
else if ($reshook < 0) $error++;*/
// Call trigger
$result=$this->call_trigger('BILL_CREATE',$user);
if ($result < 0) $error++;
// End call triggers
if (! $error)
{
if (! $notrigger)
{
// Call trigger
$result=$this->call_trigger('BILL_CREATE',$user);
if ($result < 0) $error++;
// End call triggers
}
}
if (! $error)
{