summaryrefslogtreecommitdiff
path: root/plugins/kolab_tags
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-08-06 09:58:45 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-08-06 09:58:45 (GMT)
commitee0297290c89ebcf1a97808616f7f897afafb548 (patch)
treef0090a3a0bccccc5f3ba4299bcc33e5db8753e5f /plugins/kolab_tags
parentca02fcbb37ea3f600e0b0bea15eaffebd6b3630e (diff)
downloadroundcubemail-plugins-kolab-ee0297290c89ebcf1a97808616f7f897afafb548.tar.gz
Fix setting tags filter when search scope is changed
Diffstat (limited to 'plugins/kolab_tags')
-rw-r--r--plugins/kolab_tags/kolab_tags.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/kolab_tags/kolab_tags.js b/plugins/kolab_tags/kolab_tags.js
index 39bd9cf..3c24611 100644
--- a/plugins/kolab_tags/kolab_tags.js
+++ b/plugins/kolab_tags/kolab_tags.js
@@ -524,6 +524,11 @@ function apply_tags_filter()
// adds _tags argument to http search request
function search_request(url)
{
+ // remove old tags filter
+ if (url._filter) {
+ url._filter = url._filter.replace(/^kolab_tags_[0-9]+:[^:]+:/, '');
+ }
+
if (tagsfilter.length) {
url._filter = 'kolab_tags_' + (new Date).getTime() + ':' + tagsfilter.join(',') + ':' + (url._filter || 'ALL');