mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
6401ca4959
The Binary datafilter was returning a single value where all parts of the API expect an array of values. This was working in most places by fluke as this value was a single-character string, so doing $value[0] returned the value. However, it was not working when deciding which option to mark as selected when re-displaying the filter. This change makes the filter return an array containing a single integer value to match the rest of the API, then internally selects that single value for comparison when deciding if an option should be selected.