> 他に変更すべき箇所を教えていただけないでしょうか?
大変失礼致しました。
恐らく下記修正で大丈夫だと思います。
よろしければ、お試しください。
Moodleのバージョン: Moodle 1.8.4+
修正プログラム: user/moodlelib.php
修正プログラム:
lib/moodlelib.php修正箇所: 28行目
[ 変更前 ]
function user_not_fully_set_up($user) {
return ($user->username != 'guest' and (empty($user->
firstname) or empty($user->
lastname)
or empty($user->email) or over_bounce_threshold($user)));
}
[ 変更後 ]
function user_not_fully_set_up($user) {
// return ($user->username != 'guest' and (empty($user->firstname) or empty($user->lastname) or empty($user->email) or over_bounce_threshold($user)));
return ($user->username != 'guest' and (empty($user->firstname) or empty($user->lastname) or over_bounce_threshold($user)));
}
修正プログラム:
user/edilib.php修正箇所: 71行目
[ 変更前 ]
$mform->addRule('email', $strrequired, 'required', null, 'client');
[ 変更後 ]
// $mform->addRule('email', $strrequired, 'required', null, 'client');
修正箇所: 160行目
[ 変更前 ]
$mform->addRule('city', $strrequired, 'required', null, 'client');
[ 変更後 ]
// $mform->addRule('city', $strrequired, 'required', null, 'client');
修正箇所: 166行目
[ 変更前 ]
$mform->addRule('country', $strrequired, 'required', null, 'client');
[ 変更後 ]
// $mform->addRule('country', $strrequired, 'required', null, 'client');
修正プログラム:
user/edit_form.php修正箇所: 28行目
[ 変更前 ]
/// extra settigs
$mform->addRule('description', $strrequired, 'required', null, 'client');
[ 変更後 ]
/// extra settigs
// $mform->addRule('description', $strrequired, 'required', null, 'client');
修正箇所: 103行目
[ 変更前 ]
// validate email
if (!validate_email($usernew->email)) {
$err['email'] = get_string('invalidemail');
} else if (($usernew->email !== $user->email) and record_exists('user', 'email', $usernew->email, 'mnethostid', $CFG->mnet_localhost_id)) {
$err['email'] = get_string('emailexists');
}
[ 変更後 ]
// validate email
if (!validate_email($usernew->email)) {
// $err['email'] = get_string('invalidemail');
} else if (($usernew->email !== $user->email) and record_exists('user', 'email', $usernew->email, 'mnethostid', $CFG->mnet_localhost_id)) {
$err['email'] = get_string('emailexists');
}
修正プログラム:
user/editadvanced_form.php修正箇所: 137行目
[ 変更前 ]
if (!$user or $user->email !== $usernew->email) {
if (!validate_email($usernew->email)) {
$err['email'] = get_string('invalidemail');
} else if (record_exists('user', 'email', $usernew->email, 'mnethostid', $CFG->mnet_localhost_id)) {
$err['email'] = get_string('emailexists');
}
}
[ 変更後 ]
if (!$user or $user->email !== $usernew->email) {
if (!validate_email($usernew->email)) {
// $err['email'] = get_string('invalidemail');
} else if (record_exists('user', 'email', $usernew->email, 'mnethostid', $CFG->mnet_localhost_id)) {
$err['email'] = get_string('emailexists');
}
}