MDL-31469 formslib: fix invalid for="" attributes on optional dates
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 1 Feb 2012 12:17:31 +0000 (12:17 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 2 Feb 2012 18:38:01 +0000 (18:38 +0000)
lib/pear/HTML/QuickForm/checkbox.php

index 8b79c12..100f8e7 100644 (file)
@@ -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) {