From d0514c09f9f17660a0fb9bb46a9f1b358922e5fa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 5 Mar 2011 01:08:38 +0000 Subject: [PATCH] Fix: Error message was not visible --- htdocs/fourn/facture/paiement.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 58dcf976252..82b4db1eaab 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -113,7 +113,7 @@ if ($action == 'add_paiement') if (empty($datepaye)) { - $fiche_erreur_message = '
'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('Date')).'
'; + $mesg = '
'.$langs->trans('ErrorFieldRequired',$langs->transnoentities('Date')).'
'; $error++; } @@ -173,8 +173,6 @@ llxHeader(); $html=new Form($db); -if ($mesg) print $mesg; - if ($action == 'create' || $action == 'add_paiement') { $facture = new FactureFournisseur($db); @@ -202,6 +200,9 @@ if ($action == 'create' || $action == 'add_paiement') print_fiche_titre($langs->trans('DoPayment')); + if ($mesg) print $mesg; + if ($errmsg) print $errmsg; + print '
'; print ''; print ''; @@ -402,6 +403,9 @@ if (! $_GET['action'] && ! $_POST['action']) print_barre_liste($langs->trans('SupplierPayments'), $page, 'paiement.php',$paramlist,$sortfield,$sortorder,'',$num); + if ($mesg) print $mesg; + if ($errmsg) print $errmsg; + print ''; print ''; print '';