]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19030 very ugly hack - do not try to add id to labels of element group - they...
authorskodak <skodak>
Thu, 30 Apr 2009 10:06:11 +0000 (10:06 +0000)
committerskodak <skodak>
Thu, 30 Apr 2009 10:06:11 +0000 (10:06 +0000)
lib/pear/HTML/QuickForm/Renderer/Tableless.php

index 8f653c711a1736b18e937bb6ee2eaeadcbe782e3..f0b0a0480df32c784da94d1b2fc66d9f20f0a761 100644 (file)
@@ -186,7 +186,7 @@ class HTML_QuickForm_Renderer_Tableless extends HTML_QuickForm_Renderer_Default
             } else {
                 $id = $element->getName();
             }
-            if (!empty($id) and !$element->isFrozen()) { // moodle hack
+            if (!empty($id) and !$element->isFrozen() and !is_a($element, 'MoodleQuickForm_group')) { // moodle hack
                 $html = str_replace('<label', '<label for="' . $id . '"', $html);
                 $element_html = preg_replace('#name="' . $id . '#',
                                              'id="' . $id . '" name="' . $id . '',