From 98e824bcedc56896d23a533c8523dee3115a53ce Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 4 Dec 2012 10:22:29 +0100 Subject: [PATCH] Avoid duplicating ReportAdmin search params (fixes #8046) --- javascript/ReportAdmin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/ReportAdmin.js b/javascript/ReportAdmin.js index b8e82d2f..5d927a81 100644 --- a/javascript/ReportAdmin.js +++ b/javascript/ReportAdmin.js @@ -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);