mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-8096 fixed country selection
This commit is contained in:
parent
1a8b5f9568
commit
f017ea3045
@ -183,7 +183,7 @@ class user_edit_form extends moodleform {
|
|||||||
|
|
||||||
|
|
||||||
$choices = get_list_of_countries();
|
$choices = get_list_of_countries();
|
||||||
$choices[0] = get_string('selectacountry').'...';
|
$choices= array(''=>get_string('selectacountry').'...') + $choices;
|
||||||
$mform->addElement('select', 'country', get_string('selectacountry'), $choices);
|
$mform->addElement('select', 'country', get_string('selectacountry'), $choices);
|
||||||
$mform->setType('country', PARAM_ALPHA);
|
$mform->setType('country', PARAM_ALPHA);
|
||||||
$mform->addRule('country', $strrequired, 'required', null, 'client');
|
$mform->addRule('country', $strrequired, 'required', null, 'client');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user