From 576c3da280c318eae6188c3462c25a68d866d331 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Aug 2010 18:58:14 +0000 Subject: [PATCH] Page is not reloaded. --- htdocs/compta/facture.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index d92b04d14b6..f1785716734 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1972,11 +1972,11 @@ else if ($ret == 'html') print '
'; } - // Confirmation de la suppression de la facture + // Confirmation to delete invoice if ($_GET['action'] == 'delete') { $text=$langs->trans('ConfirmDeleteBill'); - $ret=$html->form_confirm($_SERVER['PHP_SELF'].'?facid='.$fac->id,$langs->trans('DeleteBill'),$text,'confirm_delete','',0,2); + $ret=$html->form_confirm($_SERVER['PHP_SELF'].'?facid='.$fac->id,$langs->trans('DeleteBill'),$text,'confirm_delete','',0,1); if ($ret == 'html') print '
'; } @@ -3187,7 +3187,7 @@ else } // Delete - if ($fac->is_erasable() && $user->rights->facture->supprimer && $_GET['action'] != 'delete') + if ($fac->is_erasable() && $user->rights->facture->supprimer) { if ($facidnext) {