mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-74972 core_form: frozen autocomplete element does not display values
This commit is contained in:
parent
ca583bddaf
commit
d6540ddfda
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user