diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-08-21 15:52:30 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-09-06 09:46:28 +0200 |
commit | 90c0bf47e12147c616fd283b790f320ac7cfe7cc (patch) | |
tree | 624c30bda4fc02bd5731f4acbaa1af3b84c33e7b | |
parent | 0b0e7801f0b7ab999d8546b49a3982e18f4f0759 (diff) | |
download | freeipa-90c0bf47e12147c616fd283b790f320ac7cfe7cc.tar.gz freeipa-90c0bf47e12147c616fd283b790f320ac7cfe7cc.tar.xz freeipa-90c0bf47e12147c616fd283b790f320ac7cfe7cc.zip |
Fixed search in HBAC test
Search in HBAC test wasn't working because expired flag wasn't set.
https://fedorahosted.org/freeipa/ticket/2931
-rw-r--r-- | install/ui/hbactest.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/install/ui/hbactest.js b/install/ui/hbactest.js index 4b666ef29..93d17c719 100644 --- a/install/ui/hbactest.js +++ b/install/ui/hbactest.js @@ -374,10 +374,19 @@ IPA.hbac.test_select_facet = function(spec) { }; that.find = function() { + + var old_filter = IPA.nav.get_state(that.entity.name+'-'+that.name+'-filter'); var filter = that.filter.val(); - var state = {}; - state[that.entity.name+'-'+that.name+'-filter'] = filter; - IPA.nav.push_state(state); + + that.set_expired_flag(); + + if (old_filter === filter) { + that.refresh(); + } else { + var state = {}; + state[that.entity.name+'-'+that.name+'-filter'] = filter; + IPA.nav.push_state(state); + } }; that.get_selected_values = function() { |