From 9a486254818e514004c423baf0040c8f486ebd65 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 17 Jul 2005 16:51:03 +0000 Subject: [PATCH] Fix apply button in preferences --- addressbook/inc/class.uiaddressbook.inc.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.uiaddressbook.inc.php b/addressbook/inc/class.uiaddressbook.inc.php index 673af87aa1..e737b86b69 100644 --- a/addressbook/inc/class.uiaddressbook.inc.php +++ b/addressbook/inc/class.uiaddressbook.inc.php @@ -1208,7 +1208,7 @@ $GLOBALS['egw']->redirect_link('/preferences/index.php'); } - if($_POST['save']) + if($_POST['save'] || $_POST['apply']) { $totalerrors = 0; if(!count($prefs)) @@ -1219,7 +1219,14 @@ { @reset($qfields); $this->bo->save_preferences($prefs,$other,$qfields,$fcat_id); - $GLOBALS['egw']->redirect_link('/preferences/index.php'); + if($_POST['save']) + { + $GLOBALS['egw']->redirect_link('/preferences/index.php'); + } + if($_POST['apply']) + { + $GLOBALS['egw']->redirect_link('/index.php','menuaction=addressbook.uiaddressbook.preferences'); + } } }