diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php
index 954d6315d..018d41a79 100755
--- a/gulliver/system/class.xmlform.php
+++ b/gulliver/system/class.xmlform.php
@@ -1583,8 +1583,8 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek
if (strlen( trim( $formVariableValue ) ) > 0) {
$value = $formVariableValue;
}
- $name = "'" . $this->name . "'";
- $str = 'NSDependentFields( true ) . ' ';
$str .= $this->NSRequiredValue() . ' ';
$str .= $this->NSGridLabel() . ' ';
@@ -1709,9 +1709,16 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek
return $str;
}
} else {
- $str = 'NSGridType() . ' >';
- $str .= $this->htmlentities( $formVariableValue, ENT_COMPAT, 'utf-8' );
- $str .= '';
+ $str = $this->htmlentities($formVariableValue, ENT_COMPAT, 'utf-8');
+ $str .= 'NSDependentFields(true) . ' ';
+ $str .= $this->NSRequiredValue() . ' ';
+ $str .= $this->NSGridLabel() . ' ';
+ $str .= '/>';
+ $str .= 'NSGridType() . ' ';
+ $str .= '/>';
+
return $str;
}
}