Merge branch 'MDL-31469' of git://github.com/timhunt/moodle
authorAparup Banerjee <aparup@moodle.com>
Tue, 7 Feb 2012 07:11:43 +0000 (15:11 +0800)
committerAparup Banerjee <aparup@moodle.com>
Tue, 7 Feb 2012 07:11:43 +0000 (15:11 +0800)
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) {