From a43949b62114047861a360b97b72ff86308add90 Mon Sep 17 00:00:00 2001 From: Douglas Medrano Chura Date: Wed, 20 Jul 2011 17:12:56 -0400 Subject: [PATCH] BUG 7281 Solved the problem of the javascript with error, Expected '}' The problem was caused by single quote characters and double quotes created as the Dynaform labes that when evaluated by javascript errors caused. --- gulliver/system/class.xmlform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 89589a14b..ab4e8198a 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -4201,7 +4201,7 @@ class XmlForm $this->requiredFields [] = array ( 'name' => $field->name, 'type' => $xmlNode [$k]->attributes ['type'], - 'label' => trim ( $field->label ), + 'label' => addslashes(trim ( $field->label )), 'validate' => $validateValue, 'required' => $requiredValue );