diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-04-02 15:22:07 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-04-10 13:24:44 +0200 |
commit | 49ed21dee4d3c2524f633592f935ba39c5faba6a (patch) | |
tree | 2c8792b4259c3e9cc3a00bd5c06b385b9a515983 | |
parent | d5ae74e613ad61ea7898ce45f300c86bc38fcc86 (diff) | |
download | freeipa-49ed21dee4d3c2524f633592f935ba39c5faba6a.tar.gz freeipa-49ed21dee4d3c2524f633592f935ba39c5faba6a.tar.xz freeipa-49ed21dee4d3c2524f633592f935ba39c5faba6a.zip |
Added attrs field to permission for target=subtree
Permission form was missing attrs field for target=subtree. All other target types have it.
It uses multivalued text widget, same as filter, because we can't predict the target type.
https://fedorahosted.org/freeipa/ticket/2592
-rw-r--r-- | install/ui/aci.js | 3 | ||||
-rw-r--r-- | install/ui/test/aci_tests.js | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js index d65d3f884..21ffa718e 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -836,6 +836,9 @@ IPA.permission_target_policy = function (widget_name) { additional: [ { name: 'memberof' + }, + { + name: 'attrs_multi' } ] }, diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js index c51107da4..4055120f2 100644 --- a/install/ui/test/aci_tests.js +++ b/install/ui/test/aci_tests.js @@ -282,7 +282,7 @@ test("Testing subtree target.", function() { same(record.subtree[0], data.result.result.subtree, 'subtree set correctly'); - same(get_visible_rows(target_widget), ['memberof', 'subtree'], 'subtree row visible'); + same(get_visible_rows(target_widget), ['memberof', 'subtree', 'attrs_multi'], 'subtree row visible'); }); |