From 49ba2b61b975ac4b661cf9e975503406fdee1f09 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 30 Apr 2009 10:09:13 +0000 Subject: [PATCH] MDL-19030 even uglier hack - do not try to add id to labels of static element - they do not have it; merged from MOODLE_19_STABLE --- lib/pear/HTML/QuickForm/Renderer/Tableless.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pear/HTML/QuickForm/Renderer/Tableless.php b/lib/pear/HTML/QuickForm/Renderer/Tableless.php index f0b0a0480d..869006414c 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() and !is_a($element, 'MoodleQuickForm_group')) { // moodle hack + if (!empty($id) and !$element->isFrozen() and !is_a($element, 'MoodleQuickForm_group') and !is_a($element, 'HTML_QuickForm_static')) { // moodle hack $html = str_replace('