MDL-74972 core_form: frozen autocomplete element does not display values

This commit is contained in:
Marina Glancy 2022-06-14 13:27:01 +02:00
parent ca583bddaf
commit d6540ddfda

View File

@ -245,6 +245,9 @@ class MoodleQuickForm_autocomplete extends MoodleQuickForm_select {
$html = call_user_func($this->valuehtmlcallback, $value); $html = call_user_func($this->valuehtmlcallback, $value);
if ($html !== false) { if ($html !== false) {
$option['html'] = $html; $option['html'] = $html;
if ($this->isFrozen()) {
$option['text'] = $html;
}
} }
} }
} }