From 8031ef49f28ffd3fd5055d539bc2031ecce71d04 Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Tue, 5 Jun 2018 20:38:55 +0200 Subject: [PATCH 1/2] fix error return --- htdocs/fourn/commande/card.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 8ea1f249b7e..41b7afb1579 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -969,6 +969,7 @@ if (empty($reshook)) if ($result < 0) { + setEventMessages(null,$object->errors,'errors'); $error++; } From fdc90da408b8a8c25105052f57a800c1b194b084 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Jun 2018 20:02:38 +0200 Subject: [PATCH 2/2] Update card.php --- htdocs/fourn/commande/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 41b7afb1579..efa8be0f951 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -969,7 +969,7 @@ if (empty($reshook)) if ($result < 0) { - setEventMessages(null,$object->errors,'errors'); + setEventMessages($object->error,$object->errors,'errors'); $error++; }