summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-09 10:19:42 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-09 10:19:42 +0200
commit672621e389fb35f563e0df02d009484cfd9bea9f (patch)
treed99eeb78a421732d337c18b0ef34aed9b64f7e73 /program/js/app.js
parent6b5dab613ee5db61c48f8b7d75a2db52ba7fa8d4 (diff)
Fix searching in addressbook broken with multi-folder search implementation (#1489869)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index f6acdf87e..042ebb724 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4244,10 +4244,10 @@ function rcube_webmail()
url._q = search;
if (!smods && mods && this.message_list)
- smods = mods[mbox] || mods['*'];
+ mods = mods[mbox] || mods['*'];
- if (smods) {
- for (n in smods)
+ if (mods) {
+ for (n in mods)
mods_arr.push(n);
url._headers = mods_arr.join(',');
}
@@ -4302,7 +4302,8 @@ function rcube_webmail()
if (!this.env.search_mods)
this.env.search_mods = {};
- this.env.search_mods[mbox] = mods;
+ if (mbox)
+ this.env.search_mods[mbox] = mods;
};
this.is_multifolder_listing = function()