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.
This commit is contained in:
Douglas Medrano Chura
2011-07-20 17:12:56 -04:00
parent b44fa1a95f
commit a43949b621

View File

@@ -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
);