mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix regression in group type selection in group adder dialog
Refactoring of radio widget (04325fbb4c) caused that value is no longer supplied to value_change handler.
This commit is contained in:
@@ -188,12 +188,11 @@ IPA.group_adder_dialog = function(spec) {
|
||||
type_field.widget.value_changed.attach(that.on_type_change);
|
||||
};
|
||||
|
||||
that.on_type_change = function(value) {
|
||||
that.on_type_change = function() {
|
||||
|
||||
var type_field = that.fields.get_field('type');
|
||||
var gid_field = that.fields.get_field('gidnumber');
|
||||
var external_field = that.fields.get_field('external');
|
||||
|
||||
var posix = value[0] === 'posix';
|
||||
var posix = type_field.save()[0] === 'posix';
|
||||
|
||||
if (!posix) {
|
||||
gid_field.reset();
|
||||
|
||||
Reference in New Issue
Block a user