mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-31469 formslib: fix invalid for="" attributes on optional dates
This commit is contained in:
parent
baa5cd8240
commit
3bbac90b2a
@ -113,6 +113,7 @@ class HTML_QuickForm_checkbox extends HTML_QuickForm_input
|
||||
*/
|
||||
function toHtml()
|
||||
{
|
||||
$this->_generateId(); // Seems to be necessary when this is used in a group.
|
||||
if (0 == strlen($this->_text)) {
|
||||
$label = '';
|
||||
} elseif ($this->_flagFrozen) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user