MDL-85773 forms: Read-only selects must have static labels

This is to prevent labels with an invalid for attribute, referencing non-existing elements.
This commit is contained in:
Sebastian Gundersen
2025-06-17 11:44:35 +02:00
parent 95518023c6
commit d2e1d0e76e
+1
View File
@@ -232,6 +232,7 @@ class MoodleQuickForm_select extends HTML_QuickForm_select implements templatabl
}
$context['options'] = $options;
$context['nameraw'] = $this->getName();
$context['staticlabel'] = $this->_flagFrozen;
return $context;
}