From dedc7889dc0e8987cc7cc6f70a67ae571c80a10b Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 2 Apr 2012 15:22:07 +0200 Subject: 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 --- install/ui/aci.js | 3 +++ install/ui/test/aci_tests.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'install') 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'); }); -- cgit