Minahito
minah****@users*****
2006年 1月 17日 (火) 19:34:57 JST
Index: xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.3 xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.4 --- xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.3 Thu Jan 12 14:30:55 2006 +++ xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php Tue Jan 17 19:34:57 2006 @@ -136,11 +136,8 @@ $this->mFieldProperties['timezone_offset']->addMessage('required', _AD_USER_ERROR_REQUIRED, _AD_USER_LANG_TIMEZONE_OFFSET); $this->mFieldProperties['umode'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['umode']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['umode']->setDependsByArray(array('required')); $this->mFieldProperties['umode']->addMessage('required', _AD_USER_ERROR_REQUIRED, _AD_USER_LANG_UMODE); - $this->mFieldProperties['umode']->addMessage('intRange', _AD_USER_ERROR_INJURY, _AD_USER_LANG_UMODE); - $this->mFieldProperties['umode']->addVar('min', 1); - $this->mFieldProperties['umode']->addVar('max', 3); $this->mFieldProperties['uorder'] =& new XCube_FieldProperty($this); $this->mFieldProperties['uorder']->setDependsByArray(array('required','intRange')); @@ -204,7 +201,7 @@ function validateUmode() { - if (in_array($this->get('umode'), array('nest', 'flat', 'thread'))) { + if (!in_array($this->get('umode'), array('nest', 'flat', 'thread'))) { $this->addErrorMessage(_AD_USER_ERROR_UMODE); } }