diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-08-08 18:20:57 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-08-14 08:26:54 +0200 |
commit | 690211adb52647efb6bb55919dec980d3660016e (patch) | |
tree | 62ca1f83f81b470b9a8cf0bdf788f86954bd9cc8 /install/ui/facet.js | |
parent | d227c70d152095a6b8c50e93ac19197eeb9f7ffa (diff) | |
download | freeipa-690211adb52647efb6bb55919dec980d3660016e.tar.gz freeipa-690211adb52647efb6bb55919dec980d3660016e.tar.xz freeipa-690211adb52647efb6bb55919dec980d3660016e.zip |
Update other facets on delete from search page
When an object in search facet was deleted, other facets were not notified that they need to refresh. If one crated object with same pkey as deleted object and then navigated to it's details he could see old object's data.
This notification was added.
https://fedorahosted.org/freeipa/ticket/2618
Diffstat (limited to 'install/ui/facet.js')
-rw-r--r-- | install/ui/facet.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/install/ui/facet.js b/install/ui/facet.js index 267fc3332..d5b21f323 100644 --- a/install/ui/facet.js +++ b/install/ui/facet.js @@ -1206,6 +1206,12 @@ IPA.facet_builder = function(entity) { spec.tab_label = spec.tab_label || attr_metadata.label; spec.factory = spec.factory || IPA.attribute_facet; + entity.policies.add_policy(IPA.build({ + factory: IPA.facet_update_policy, + source_facet: 'search', + dest_facet: spec.name + })); + return spec; }; @@ -1242,6 +1248,12 @@ IPA.facet_builder = function(entity) { spec.read_only = true; } + entity.policies.add_policy(IPA.build({ + factory: IPA.facet_update_policy, + source_facet: 'search', + dest_facet: spec.name + })); + return spec; }; |