Minahito
minah****@users*****
2006年 1月 9日 (月) 02:53:08 JST
Index: xoops2jp/html/modules/user/admin/forms/UserEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/UserEditForm.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/forms/UserEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/user/admin/forms/UserEditForm.class.php:1.1.2.1 Sun Jan 8 16:49:10 2006 +++ xoops2jp/html/modules/user/admin/forms/UserEditForm.class.php Mon Jan 9 02:53:08 2006 @@ -39,6 +39,7 @@ $this->mFormProperties['bio'] =& new XCube_TextProperty('bio'); $this->mFormProperties['user_intrest'] =& new XCube_StringProperty('user_intrest'); $this->mFormProperties['user_mailok'] =& new XCube_IntProperty('user_mailok'); + $this->mFormProperties['groups'] =& new XCube_IntArrayProperty('groups'); // // Set field properties @@ -211,6 +212,12 @@ $this->setVar('bio', $obj->get('bio')); $this->setVar('user_intrest', $obj->get('user_intrest')); $this->setVar('user_mailok', $obj->get('user_mailok')); + + $groups =& $obj->getGroups(); + $i = 0; + foreach ($groups as $gid) { + $this->set('groups', $i++, $gid); + } } function update(&$obj) @@ -240,10 +247,6 @@ $obj->setVar('bio', $this->get('bio')); $obj->setVar('user_intrest', $this->get('user_intrest')); $obj->setVar('user_mailok', $this->get('user_mailok')); - - // - // ?????????? - // } }