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
2012-04-02 15:22:07 +02:00
parent 31f1562419
commit dedc7889dc
2 changed files with 4 additions and 1 deletions

View File

@@ -836,6 +836,9 @@ IPA.permission_target_policy = function (widget_name) {
additional: [
{
name: 'memberof'
},
{
name: 'attrs_multi'
}
]
},

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');
});