mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-46467 forms: Labels have "for" attribute even when frozen
This commit is contained in:
parent
e0ae3519a1
commit
8b5f402151
@ -186,7 +186,7 @@ class HTML_QuickForm_Renderer_Tableless extends HTML_QuickForm_Renderer_Default
|
||||
} else {
|
||||
$id = $element->getName();
|
||||
}
|
||||
if (!empty($id) and !$element->isFrozen() and !is_a($element, 'MoodleQuickForm_group') and !is_a($element, 'HTML_QuickForm_static')) { // moodle hack
|
||||
if (!empty($id) and !is_a($element, 'MoodleQuickForm_group') and !is_a($element, 'HTML_QuickForm_static')) { // moodle hack
|
||||
$html = str_replace('<label', '<label for="' . $id . '"', $html);
|
||||
$element_html = preg_replace('#name="' . $id . '#',
|
||||
'id="' . $id . '" name="' . $id . '',
|
||||
|
@ -21,3 +21,4 @@ Most probably we will stop using this library in the future.
|
||||
|
||||
MDL-20876 - replaced split() with explode() or preg_split() where appropriate
|
||||
MDL-40267 - Moodle core_text strlen functions used for range rule rule to be utf8 safe.
|
||||
MDL-46467 - $mform->hardfreeze causes labels to loose their for HTML attribute
|
||||
|
Loading…
x
Reference in New Issue
Block a user