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
This commit is contained in:
Petr Vobornik committed 2012-04-10 13:19:36 +02:00
1 parent 31f1562419
commit dedc7889dc
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -836,6 +836,9 @@ IPA.permission_target_policy = function (widget_name) {
additional: [
{
name: 'memberof'
},
{
name: 'attrs_multi'
}
]
},
+1 -1
View File
@@ -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');
});