From: Mike Taylor Date: Thu, 24 Apr 2014 13:43:07 +0000 (+0100) Subject: Generate category limits correctly -- thanks to NE! X-Git-Tag: 1.0.0~848^2~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=04ee68fc68554df39378fc1b67ad403b880bb2e9;p=mkws-moved-to-github.git Generate category limits correctly -- thanks to NE! --- diff --git a/src/mkws-team.js b/src/mkws-team.js index b02b441..08f67b3 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -272,10 +272,12 @@ function team($, teamName) { var pp2filter = m_filterSet.pp2filter(); var pp2limit = m_filterSet.pp2limit(limit); var pp2catLimit = m_filterSet.pp2catLimit(); + if (pp2catLimit) { + pp2filter = pp2filter ? pp2filter + "," + pp2catLimit : pp2catLimit; + } var params = {}; if (pp2limit) params.limit = pp2limit; - if (pp2catLimit) params.categoryfilter = pp2catLimit; if (maxrecs) params.maxrecs = maxrecs; if (torusquery) { if (!mkws.config.use_service_proxy)