From: Mike Taylor Date: Wed, 23 Apr 2014 10:50:20 +0000 (+0100) Subject: Separate generation of pp2filter and pp2limit X-Git-Tag: 1.0.0~895 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=4d1359bf9c1e6af498c842fc637f9cd850386956;p=mkws-moved-to-github.git Separate generation of pp2filter and pp2limit --- diff --git a/src/mkws-team.js b/src/mkws-team.js index aa84176..1278870 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -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, '\\$&');