From 7d213af1bd85cb09e5b66dd2c03506eb76c9495b Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 23 Apr 2014 17:00:11 +0200 Subject: Fix saving of search settings in 'all folders' mode --- program/steps/mail/search.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc index fe2c72923..e610e9137 100644 --- a/program/steps/mail/search.inc +++ b/program/steps/mail/search.inc @@ -88,8 +88,9 @@ else if (strlen(trim($str))) { } // save search modifiers for the current folder to user prefs + $mkey = $scope == 'all' ? '*' : $mbox; $search_mods = rcmail_search_mods(); - $search_mods[$mbox] = array_fill_keys(array_keys($subject), 1); + $search_mods[$mkey] = array_fill_keys(array_keys($subject), 1); $RCMAIL->user->save_prefs(array('search_mods' => $search_mods)); } -- cgit v1.2.3