Separate generation of pp2filter and pp2limit
authorMike Taylor <mike@indexdata.com>
Wed, 23 Apr 2014 10:50:20 +0000 (11:50 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 23 Apr 2014 10:50:20 +0000 (11:50 +0100)
src/mkws-team.js

index aa84176..1278870 100644 (file)
@@ -309,7 +309,11 @@ function team($, teamName) {
                    filter.id = 'pz:id=' + filter.id;
                }
                pp2filter += filter.id;
-           } else {
+           }
+       }
+       for (var i in m_filters) {
+           var filter = m_filters[i];
+           if (!filter.id) {
                if (pp2limit)
                    pp2limit += ",";
                pp2limit += filter.field + "=" + filter.value.replace(/[\\|,]/g, '\\$&');