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:25:22 +02:00
parent c42efe971f
commit cae63df759
+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;
}