If the filter isn't changed, it won't be in the URL, so we need to read the form element's value and use that.
This should resolve https://bugzilla.redhat.com/show_bug.cgi?id=744081 --- src/public/javascripts/backbone/views.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/public/javascripts/backbone/views.js b/src/public/javascripts/backbone/views.js index 0f38e18..0936532 100644 --- a/src/public/javascripts/backbone/views.js +++ b/src/public/javascripts/backbone/views.js @@ -64,6 +64,14 @@ Conductor.Views.PoolsIndex = Backbone.View.extend({ } }; }); + // If there is no URL param for the preset filter, we still need to merge in the preset filter + var filter = this.currentTab() + '_preset_filter'; + if(result[filter] == undefined) { + var filter_selector = '#' + filter + ':enabled'; + if($(filter_selector).val() != undefined) { + result[filter] = $(filter_selector).val(); + } + };
return result; },