From 763935c252a8e793b19ef97e16c73ac1f6314722 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 14 Oct 2024 09:01:10 +0200 Subject: [PATCH] FIX missing show errors --- htdocs/societe/contact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/societe/contact.php b/htdocs/societe/contact.php index f72b031f4ffd5..7996d4efc2b49 100644 --- a/htdocs/societe/contact.php +++ b/htdocs/societe/contact.php @@ -147,8 +147,12 @@ setEventMessages('RecordDeleted', null, 'mesgs'); header("Location: ".$_SERVER['PHP_SELF']."?id=".$socid); exit(); + } else { + setEventMessages($contact->error, $contact->errors, 'errors'); } } + } else { + setEventMessages($contact->error, $contact->errors, 'errors'); } } }