-
Improvement
-
Resolution: Fixed
-
Minor
-
3.0
-
MOODLE_30_STABLE
-
MOODLE_30_STABLE
-
wip-
MDL-51966-master -
I just tried to use autocomplete field on timezone field in user profile (the current selection is like 1000 elements), and realised that I have to type text case-sensitive
Can we make an option for it? I would suggest case-insensitive by default.
P.S. for testing:
diff --git a/user/editlib.php b/user/editlib.php
|
index 509a06d..016ddf0 100644
|
--- a/user/editlib.php
|
+++ b/user/editlib.php
|
@@ -339,7 +339,7 @@ function useredit_shared_definition(&$mform, $editoroptions, $filemanageroptions
|
$mform->setType('timezone', PARAM_TIMEZONE);
|
} else {
|
$choices = core_date::get_list_of_timezones($user->timezone, true);
|
- $mform->addElement('select', 'timezone', get_string('timezone'), $choices);
|
+ $mform->addElement('autocomplete', 'timezone', get_string('timezone'), $choices);
|
}
|
|
// Multi-Calendar Support - see MDL-18375.
|
For testing #2:
$mform->addElement('autocomplete', 'timezone', get_string('timezone'), $choices, array('casesensitive' => true));
|