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'); } } /*