plugins/kolab_tags
Aleksander Machniak
machniak at kolabsys.com
Wed Aug 6 11:59:26 CEST 2014
plugins/kolab_tags/kolab_tags.js | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit ee0297290c89ebcf1a97808616f7f897afafb548
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Wed Aug 6 05:58:45 2014 -0400
Fix setting tags filter when search scope is changed
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');
More information about the commits
mailing list