From 1625d126c2d9151829fbdccdcc659822ea1b4905 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Tue, 25 Feb 2014 17:16:42 +1300 Subject: [PATCH] BUG Report admin don't listen to filters It seems like filter params that are added to the url are added in a bad way Currently ?0[name]=filters[ContentReviewOwnerID]&0[value]=1 Expected: ?filters[ContentReviewOwnerID]=1 --- javascript/ReportAdmin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ReportAdmin.js b/javascript/ReportAdmin.js index 5d927a81..271dd232 100644 --- a/javascript/ReportAdmin.js +++ b/javascript/ReportAdmin.js @@ -9,7 +9,7 @@ var url = $.path.parseUrl(document.location.href).hrefNoSearch, params = this.find(':input[name^=filters]').serializeArray(); params = $.grep(params, function(param) {return (param.value);}); // filter out empty - if(params) url = $.path.addSearchParams(url, params); + if(params) url = $.path.addSearchParams(url, $.param(params)); $('.cms-container').loadPanel(url); return false; }