mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed posix group checkbox.
In the adder dialog for groups the checkbox has been modified to use the correct field name "nonposix" and be checked by default. Note: This is a temporary fix to minimize the changes due to release schedule. Eventually the field label will be changed into "Non-POSIX group" and the checkbox will be unchecked by default, which is more consistent with CLI. Ticket #1799
This commit is contained in:
@@ -92,13 +92,28 @@ IPA.entity_factories.group = function () {
|
||||
'cn',
|
||||
'description',
|
||||
{
|
||||
factory:IPA.checkbox_widget,
|
||||
name: 'posix',
|
||||
factory: IPA.group_nonposix_checkbox_widget,
|
||||
name: 'nonposix',
|
||||
label: IPA.messages.objects.group.posix,
|
||||
undo: false,
|
||||
checked: 'checked'
|
||||
checked: true
|
||||
},
|
||||
'gidnumber']
|
||||
}).
|
||||
build();
|
||||
};
|
||||
|
||||
IPA.group_nonposix_checkbox_widget = function (spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var that = IPA.checkbox_widget(spec);
|
||||
|
||||
that.save = function() {
|
||||
var value = that.checkbox_save()[0];
|
||||
// convert posix into non-posix
|
||||
return [!value];
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
Reference in New Issue
Block a user