Permalink
Browse files

MDL-31469 formslib: fix invalid for="" attributes on optional dates

  • Loading branch information...
1 parent 4d2f89f commit e8e2f4f62c88702f056bd8331b60ac7d8e4354eb @timhunt timhunt committed Feb 1, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/pear/HTML/QuickForm/checkbox.php
@@ -113,6 +113,7 @@ function getChecked()
*/
function toHtml()
{
+ $this->_generateId(); // Seems to be necessary when this is used in a group.
if (0 == strlen($this->_text)) {
$label = '';
} elseif ($this->_flagFrozen) {

0 comments on commit e8e2f4f

Please sign in to comment.