diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-09 10:19:42 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-09 10:19:42 +0200 |
commit | 672621e389fb35f563e0df02d009484cfd9bea9f (patch) | |
tree | d99eeb78a421732d337c18b0ef34aed9b64f7e73 /program | |
parent | 6b5dab613ee5db61c48f8b7d75a2db52ba7fa8d4 (diff) |
Fix searching in addressbook broken with multi-folder search implementation (#1489869)
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 9 |
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() |