From: Pasi Kallinen Date: Thu, 23 May 2013 20:24:04 +0000 (-0700) Subject: LP1183553 (continued) - Fix applied filters X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=160d864cff8c1018c694609721afd378963b7b0d;p=evergreen%2Fmasslnc.git LP1183553 (continued) - Fix applied filters The filter dialog kept the previous filter around and then joined the new one with it. This repairs that issue and applies the new filter options on subsequent loading. Signed-off-by: Pasi Kallinen Signed-off-by: Ben Shum --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index 6dd5b58aef..73f3509c67 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -108,7 +108,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { {fmClass:self.fmClass, suppressFilterFields:self.suppressFilterFields}) self.filterDialog.onApply = function(filter) { - self.cachedQuerySearch = dojo.mixin( filter, self.preFilterSearch ); + self.cachedQuerySearch = filter; self.resetStore(); self.loadAll( dojo.mixin( { offset : 0 }, self.cachedQueryOpts ),