From d6540ddfda3ff69e02c18236756cab06ec68b4b9 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 14 Jun 2022 13:27:01 +0200 Subject: [PATCH] MDL-74972 core_form: frozen autocomplete element does not display values --- lib/form/autocomplete.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/form/autocomplete.php b/lib/form/autocomplete.php index 3d05905f86f..af58840bc54 100644 --- a/lib/form/autocomplete.php +++ b/lib/form/autocomplete.php @@ -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; + } } } }