MDL-8096 fixed country selection

This commit is contained in:
skodak 2007-01-23 10:04:59 +00:00
parent 1a8b5f9568
commit f017ea3045

View File

@ -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');