add trigger on set draft order
This commit is contained in:
parent
32a0f4c530
commit
82d6f4c808
@ -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)
|
if (!$error)
|
||||||
{
|
{
|
||||||
$this->statut=self::STATUS_DRAFT;
|
$this->statut=self::STATUS_DRAFT;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user