From: skodak Date: Thu, 30 Apr 2009 10:06:11 +0000 (+0000) Subject: MDL-19030 very ugly hack - do not try to add id to labels of element group - they... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5c89242e505f3e15e56718ef0b12581147c71d8b;p=moodle.git MDL-19030 very ugly hack - do not try to add id to labels of element group - they do not have it; merged from MOODLE_19_STABLE --- diff --git a/lib/pear/HTML/QuickForm/Renderer/Tableless.php b/lib/pear/HTML/QuickForm/Renderer/Tableless.php index 8f653c711a..f0b0a0480d 100644 --- a/lib/pear/HTML/QuickForm/Renderer/Tableless.php +++ b/lib/pear/HTML/QuickForm/Renderer/Tableless.php @@ -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('