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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user