diff --git a/application/forms.class.inc.php b/application/forms.class.inc.php index 60d3f88c92..82601b4854 100644 --- a/application/forms.class.inc.php +++ b/application/forms.class.inc.php @@ -960,12 +960,10 @@ class DesignerLongTextField extends DesignerTextField if (is_array($this->aForbiddenValues)) { $sForbiddenValues = json_encode($this->aForbiddenValues); - $sExplainForbiddenValues = addslashes($this->sExplainForbiddenValues); } else { - $sForbiddenValues = 'null'; - $sExplainForbiddenValues = 'null'; + $sForbiddenValues = '[]'; //Empty JS array } $sMandatory = $this->bMandatory ? 'true' : 'false'; $sCSSClasses = ''; @@ -977,7 +975,7 @@ class DesignerLongTextField extends DesignerTextField { $oP->add_ready_script( <<