From 29f2e7236ab4c8e8d935c750cf6a49e97c33f359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Thu, 16 Aug 2012 21:37:33 +0200 Subject: [PATCH] Forgot to migrate to some lines to the new error-handler --- htdocs/commande/fiche.php | 2 +- htdocs/fourn/commande/fiche.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 3efad393732..2e7b4f21ea6 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -702,7 +702,7 @@ else if ($action == 'addline' && $user->rights->commande->creer) } else { - $mesg='
'.$object->error.'
'; + setEventMessage($object->error, 'errors'); } } } diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 88af4e5ada6..4512b2745ed 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -319,7 +319,7 @@ else if ($action == 'addline' && $user->rights->fournisseur->commande->creer) } else { - $mesgs[] ='
'.$object->error.'
'; + setEventMessage($object->error, 'errors'); } } }