From b0641e6d69d8e83528f7ec32c32ccf394ce4aab4 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Wed, 21 Oct 2020 13:22:32 +0200 Subject: [PATCH] better rix --- htdocs/fourn/class/fournisseur.commande.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index fb14b96ac9c..2b90af268c5 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2317,8 +2317,9 @@ class CommandeFournisseur extends CommonOrder $this->actionmsg2 = $comment; // Call trigger - $result += $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user); - if ($result < 0) $error++; + $result_trigger = $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user); + if ($result_trigger < 0) $error++; + else $result += (int) $result_trigger; // End call triggers if (empty($error))