add trigger on set draft order
This commit is contained in:
parent
32a0f4c530
commit
82d6f4c808
1 changed files with 6 additions and 0 deletions
|
|
@ -464,6 +464,12 @@ class Commande extends CommonOrder
|
|||
}
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
// Call trigger
|
||||
$result=$this->call_trigger('ORDER_SETDRAFT',$user);
|
||||
if ($result < 0) $error++;
|
||||
}
|
||||
|
||||
if (!$error)
|
||||
{
|
||||
$this->statut=self::STATUS_DRAFT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue