From 3bbac90b2a0710a1e0a5107b335792edb8d359da Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 1 Feb 2012 12:17:31 +0000 Subject: [PATCH] MDL-31469 formslib: fix invalid for="" attributes on optional dates --- lib/pear/HTML/QuickForm/checkbox.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pear/HTML/QuickForm/checkbox.php b/lib/pear/HTML/QuickForm/checkbox.php index 8b79c123fa3..100f8e73417 100644 --- a/lib/pear/HTML/QuickForm/checkbox.php +++ b/lib/pear/HTML/QuickForm/checkbox.php @@ -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) {