From 65b55a79a5c5974826ae246056b3858738f29aab Mon Sep 17 00:00:00 2001 From: fr69400 <82267780+fr69400@users.noreply.github.com> Date: Fri, 16 Apr 2021 10:31:18 +0200 Subject: [PATCH] Update contact.php action 'deletecontact' may have beeen cancelled by triggers. this is not system error --- htdocs/commande/contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php index 5e11c5cb030..447a0862277 100644 --- a/htdocs/commande/contact.php +++ b/htdocs/commande/contact.php @@ -88,7 +88,7 @@ if ($action == 'addcontact' && $user->rights->commande->creer) { header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id); exit; } else { - dol_print_error($db); + etEventMessages($object->error, $object->errors, 'errors'); } } /*