From a5e195d1c7efd080eeb418ad00bab5944ac84120 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Wed, 21 Oct 2020 13:20:17 +0200 Subject: [PATCH] better rix --- htdocs/fourn/class/fournisseur.commande.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 6ab78aca9bb..fb14b96ac9c 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2311,15 +2311,14 @@ class CommandeFournisseur extends CommonOrder $resql = $this->db->query($sql); if ($resql) { - $result = 0; + $result = 1; $old_statut = $this->statut; $this->statut = $statut; $this->actionmsg2 = $comment; // Call trigger - $result = $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user); + $result += $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user); if ($result < 0) $error++; - else $result = 1; // End call triggers if (empty($error))