saving initial user groups, part deux
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Dec 2005 21:14:17 +0000 (21:14 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Dec 2005 21:14:17 +0000 (21:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2467 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/user_edit.js

index 26f8824..e42322e 100644 (file)
@@ -316,16 +316,15 @@ function init_editor (u) {
                user_group_objects = req.getResultObject();
        }
 
-       var in_groups = [];
+       user_groups = [];
        for (var i in user_group_objects) {
-               in_groups.push(user_group_objects[i].grp());
                user_groups.push(user_group_objects[i].grp());
        }
 
        selectBuilder(
                'permgroups',
                [group_tree],
-               in_groups,
+               user_groups,
                { label_field           : 'name',
                  value_field           : 'id',
                  clear                 : true,