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

This commit is contained in:
Marina Glancy
2022-06-16 10:24:56 +02:00
parent 22dffcd0c2
commit bd2cb3c4e8
+3
View File
@@ -245,6 +245,9 @@ class MoodleQuickForm_autocomplete extends MoodleQuickForm_select {
$html = call_user_func($this->valuehtmlcallback, $value);
if ($html !== false) {
$option['html'] = $html;
if ($this->isFrozen()) {
$option['text'] = $html;
}
}
}
}