From 01d1ae3dcc1ba7bbeb271bda925c2d4685da758d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 9 Sep 2014 21:55:00 +0000 Subject: [PATCH] Fix selected categories disappear after searching. --- addressbook/inc/class.addressbook_ui.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 72fa84c5e3..effbd955f2 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -2614,6 +2614,8 @@ window.egw_LAB.wait(function() { if(!empty($_content)) { + $_content['cat_id'] = $this->config['cat_tab'] === 'Tree' ? $_content['cat_id_tree'] : $_content['cat_id']; + $response = egw_json_response::get(); $query = egw_session::appsession('index','addressbook'); @@ -2656,6 +2658,8 @@ window.egw_LAB.wait(function() { $sel_options = $readonlys = array(); $content = egw_session::appsession('advanced_search','addressbook'); $content['n_fn'] = $this->fullname($content); + // Avoid ID conflict with tree & selectboxes + $content['cat_id_tree'] = $content['cat_id']; for($i = -23; $i<=23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; $sel_options['tz'] = $tz + array('' => lang('doesn\'t matter'));