LP1183553 (continued) - Fix applied filters
authorPasi Kallinen <pasi.kallinen@pttk.fi>
Thu, 23 May 2013 20:24:04 +0000 (13:24 -0700)
committerBen Shum <bshum@biblio.org>
Sat, 7 Sep 2013 03:04:34 +0000 (23:04 -0400)
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 <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/dojo/openils/widget/AutoGrid.js

index 6dd5b58..73f3509 100644 (file)
@@ -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 ),