From 4245ad6e2a1a2930f74fae8037ea51e2cf8125ec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 29 Nov 2017 16:26:19 +0100 Subject: [PATCH] Return error messages --- htdocs/societe/card.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 2d9d76d8b2b..3a66733adf5 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -245,7 +245,11 @@ if (empty($reshook)) // Call trigger $result=$object->call_trigger('COMPANY_MODIFY',$user); - if ($result < 0) $error++; + if ($result < 0) + { + setEventMessages($object->error, $object->errors, 'errors'); + $error++; + } // End call triggers }