BUGFIX: pass the correct param values through to reports (see https://github.com/silverstripe/silverstripe-cms/pull/956)

This commit is contained in:
Stevie Mayhew 2014-03-13 11:35:43 +13:00
parent 2303ce3ed0
commit f1024db69e

View File

@ -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;
}