From 53dc8b3ec925a838c0c44d8563c462bd80e297d2 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 5 Apr 2013 13:20:23 +0200 Subject: Fix regression in group type selection in group adder dialog Refactoring of radio widget (04325fbb4c64ee4aef6d8c9adf0ff95b8b653101) caused that value is no longer supplied to value_change handler. --- install/ui/src/freeipa/group.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'install/ui/src') diff --git a/install/ui/src/freeipa/group.js b/install/ui/src/freeipa/group.js index b7749a99..a84f49f8 100644 --- a/install/ui/src/freeipa/group.js +++ b/install/ui/src/freeipa/group.js @@ -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(); -- cgit