From 82d6f4c8080dec3cdb04f2dcef959776fd4bd4fc Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Fri, 20 May 2016 20:09:30 +0200 Subject: [PATCH] add trigger on set draft order --- htdocs/commande/class/commande.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index a2788ba9808..30b06a351d2 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -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;