diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-04-02 15:00:26 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-04-10 13:24:37 +0200 |
commit | d5ae74e613ad61ea7898ce45f300c86bc38fcc86 (patch) | |
tree | 36ad32d9e047cbde859d0bec81c5c48aa35c717e | |
parent | 7a9da0b1b20fbb8754fcd80618f92c74dce3dcf3 (diff) | |
download | freeipa.git-d5ae74e613ad61ea7898ce45f300c86bc38fcc86.tar.gz freeipa.git-d5ae74e613ad61ea7898ce45f300c86bc38fcc86.tar.xz freeipa.git-d5ae74e613ad61ea7898ce45f300c86bc38fcc86.zip |
Fixed: permission attrs table didn't update its available options on load
It could lead to state where attributes from other object type were displayed instead of the correct ones.
https://fedorahosted.org/freeipa/ticket/2590
-rw-r--r-- | install/ui/aci.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js index ba4a22bf..d65d3f88 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -759,6 +759,13 @@ IPA.permission_target_policy = function (widget_name) { attribute_field.reset(); }; + that.update_attrs = function() { + + var type_select = that.permission_target.widgets.get_widget('type'); + var type = type_select.save()[0]; + that.set_attrs_type(type); + }; + that.post_create = function() { that.select_target(that.permission_target.targets[0]); }; @@ -853,7 +860,10 @@ IPA.permission_target_policy = function (widget_name) { { name: 'attrs' } - ] + ], + action: function() { + that.update_attrs(); + } } }; |