-
Bug
-
Resolution: Fixed
-
Major
-
3.1.4, 3.2.1, 3.4, 3.5, 3.7.5, 3.8.2, 3.9
-
MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
The autocomplete Form API has the following problems:
- Adding options $options = array('multiple' => false); will render a multi-select autocomplete-form not a single-select. Workaround: Do not add the array key 'multiple' at all, then autocomplete will stay a single choice field.
- $mform->disabledIf does not work with autocomplete
- Given $options = array('tags' => true); will render a single choice autocomplete form, but once a value is selected, it can not be removed anymore. It can only be replaced by another value. That should only happen when the field is set to "required". So even, if this field is not required, it is somehow difficult to leave it blank, once a value is selected. See
MDL-63125 - Saving blank autocomplete formfields, will result in multiple problem processing the form data. So there is a dirty hack to process an empty form. The items have to contain this value: qf_force_multiselect_submission, it has to be filtered after form submission. For an example have a look at this commit: [https://github.com/dasistwas/moodle-mod_datalynx/commit/d09a2cd2279e1d97aa6bc2c2453e4da39efa3f76 - see
MDL-64151
Before start any work here, please read my comment below, if might be the case, please split the fix into small issues to limit the scope.
- caused a regression
-
MDL-70121 single select autocomplete elements should not allow clearing
- Open
-
MDL-68808 MDL-57680 breaks form-autocomplete in IE11
- Closed
- Discovered while testing
-
MDL-60506 debugging error in error logs when enrolling users using the new 3.4 UI
- Closed
- has a non-specific relationship to
-
MDL-64151 Theme Boost- Cannot uncheck course from course completion at all!
- Closed
-
MDL-63125 Single-selection user autocomplete box is confusing to change user
- Closed
- is duplicated by
-
MDL-68546 No way to have no default option for single-select autocomplete
- Closed