Skip to content
Browse files

Avoid duplicating ReportAdmin search params (fixes #8046)

  • Loading branch information...
1 parent f9a5601 commit 98e824bcedc56896d23a533c8523dee3115a53ce @chillu chillu committed Dec 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 javascript/ReportAdmin.js
View
3 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);

0 comments on commit 98e824b

Please sign in to comment.
Something went wrong with that request. Please try again.