diff --git a/user/editlib.php b/user/editlib.php index 434e28d7534..46d87538410 100644 --- a/user/editlib.php +++ b/user/editlib.php @@ -219,7 +219,6 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager $mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"'); $mform->setType('city', PARAM_TEXT); - $mform->addRule('city', $strrequired, 'required', null, 'client'); if (!empty($CFG->defaultcity)) { $mform->setDefault('city', $CFG->defaultcity); } @@ -227,7 +226,6 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager $choices = get_string_manager()->get_list_of_countries(); $choices= array(''=>get_string('selectacountry').'...') + $choices; $mform->addElement('select', 'country', get_string('selectacountry'), $choices); - $mform->addRule('country', $strrequired, 'required', null, 'client'); if (!empty($CFG->country)) { $mform->setDefault('country', $CFG->country); }