add trigger on set draft order

This commit is contained in:
florian HENRY 2016-05-20 20:09:30 +02:00
parent 32a0f4c530
commit 82d6f4c808

View File

@ -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;