mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'wip-mdl-28558' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
5d37fd271d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user