Merge pull request #8509 from tuxgasy/5.0_notrigger_BILL_CREATE
fix notrigger ignored on BILL_CREATE
This commit is contained in:
commit
9892a97424
@ -769,10 +769,16 @@ class Facture extends CommonInvoice
|
|||||||
}
|
}
|
||||||
else if ($reshook < 0) $error++;*/
|
else if ($reshook < 0) $error++;*/
|
||||||
|
|
||||||
|
if (! $error)
|
||||||
|
{
|
||||||
|
if (! $notrigger)
|
||||||
|
{
|
||||||
// Call trigger
|
// Call trigger
|
||||||
$result=$this->call_trigger('BILL_CREATE',$user);
|
$result=$this->call_trigger('BILL_CREATE',$user);
|
||||||
if ($result < 0) $error++;
|
if ($result < 0) $error++;
|
||||||
// End call triggers
|
// End call triggers
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user