Avoid duplicating ReportAdmin search params (fixes #8046)

This commit is contained in:
Ingo Schommer 2012-12-04 10:22:29 +01:00
parent f9a5601fa3
commit 98e824bced

View File

@ -6,7 +6,8 @@
$.entwine('ss', function($){
$('.ReportAdmin .cms-edit-form').entwine({
onsubmit: function(e) {
var url = document.location.href, params = this.find(':input[name^=filters]').serializeArray();
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);
$('.cms-container').loadPanel(url);