From d7530d9176cd564451fa19360620c991b545deda Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 28 Aug 2010 11:06:21 +0000 Subject: [PATCH] Add a button "cancel" --- htdocs/admin/mails.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 10a84f73c08..deea2ae92bf 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -48,7 +48,7 @@ $substitutionarrayfortest=array( * Actions */ -if (isset($_POST["action"]) && $_POST["action"] == 'update') +if (isset($_POST["action"]) && $_POST["action"] == 'update' && empty($_POST["cancel"])) { dolibarr_set_const($db, "MAIN_DISABLE_ALL_MAILS", $_POST["MAIN_DISABLE_ALL_MAILS"],'chaine',0,'',$conf->entity); dolibarr_set_const($db, "MAIN_MAIL_SENDMODE", $_POST["MAIN_MAIL_SENDMODE"],'chaine',0,'',0); @@ -433,7 +433,9 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') print ''; print '
'; - print ''; + print ''; + print '     '; + print ''; print '
'; print '';