summaryrefslogtreecommitdiff
path: root/program/steps/addressbook
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-14 15:40:14 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-14 15:40:50 +0200
commitef950cb7122aec54800e970597507c7db6440289 (patch)
tree2bd63ad3f12c04b802f96efa824b83dd340c27f2 /program/steps/addressbook
parent15f63ce4b3d7d179a9dc709c5fa3427117248a4e (diff)
Fix inactive Save search option after advanced search (#1488607)
Diffstat (limited to 'program/steps/addressbook')
-rw-r--r--program/steps/addressbook/search.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/steps/addressbook/search.inc b/program/steps/addressbook/search.inc
index 6422bc72d..344c42dd4 100644
--- a/program/steps/addressbook/search.inc
+++ b/program/steps/addressbook/search.inc
@@ -239,9 +239,12 @@ function rcmail_contact_search()
$OUTPUT->command('set_env', 'source', '');
$OUTPUT->command('set_env', 'group', '');
- // unselect currently selected directory/group
- if (!$sid)
+ if (!$sid) {
+ // unselect currently selected directory/group
$OUTPUT->command('unselect_directory');
+ // enable "Save search" command
+ $OUTPUT->command('enable_command', 'search-create', true);
+ }
$OUTPUT->command('update_group_commands');
// send response