mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-78617 formslib: Fix element with no name going to sticky footer.
This commit is contained in:
parent
8dbb6183ff
commit
21ab60b30b
@ -3267,7 +3267,7 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{
|
||||
}
|
||||
$this->_templates[$group->getName()] = $html;
|
||||
// Check if the element should be displayed in the sticky footer.
|
||||
if ($this->_stickyfooterelement == $group->getName()) {
|
||||
if ($group->getName() && ($this->_stickyfooterelement == $group->getName())) {
|
||||
$stickyfooter = new core\output\sticky_footer($html);
|
||||
$html = $OUTPUT->render($stickyfooter);
|
||||
}
|
||||
@ -3353,7 +3353,7 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{
|
||||
}
|
||||
|
||||
// Check if the element should be displayed in the sticky footer.
|
||||
if ($this->_stickyfooterelement == $element->getName()) {
|
||||
if ($element->getName() && ($this->_stickyfooterelement == $element->getName())) {
|
||||
$stickyfooter = new core\output\sticky_footer($html);
|
||||
$html = $OUTPUT->render($stickyfooter);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user