Merge branch 'wip-mdl-28558' of git://github.com/rajeshtaneja/moodle

This commit is contained in:
Sam Hemelryk 2013-06-11 11:06:17 +12:00
commit 5d37fd271d

View File

@ -219,7 +219,6 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager
$mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"'); $mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"');
$mform->setType('city', PARAM_TEXT); $mform->setType('city', PARAM_TEXT);
$mform->addRule('city', $strrequired, 'required', null, 'client');
if (!empty($CFG->defaultcity)) { if (!empty($CFG->defaultcity)) {
$mform->setDefault('city', $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 = get_string_manager()->get_list_of_countries();
$choices= array(''=>get_string('selectacountry').'...') + $choices; $choices= array(''=>get_string('selectacountry').'...') + $choices;
$mform->addElement('select', 'country', get_string('selectacountry'), $choices); $mform->addElement('select', 'country', get_string('selectacountry'), $choices);
$mform->addRule('country', $strrequired, 'required', null, 'client');
if (!empty($CFG->country)) { if (!empty($CFG->country)) {
$mform->setDefault('country', $CFG->country); $mform->setDefault('country', $CFG->country);
} }