HOR-4547: Classic / Output Document / Edit

PHP Warning:  Declaration of XmlFormFieldWYSIWYGEditor::render($value, $owner = NULL) should be compatible with XmlFormField::render($value = NULL, $paramDummy2 = NULL) in /srv/http/processmaker/gulliver/system/class.wysiwygEditor.php on line 240
This commit is contained in:
Roly Rudy Gutierrez Pinto
2018-05-11 11:40:36 -04:00
parent 440223a59f
commit fda948a950

View File

@@ -56,8 +56,11 @@ class XmlFormFieldWYSIWYGEditor extends XmlFormField
* @return string * @return string
* *
*/ */
public function render($value, $owner = null) public function render($value = null, $owner = null)
{ {
if ($value === null) {
$value = '';
}
$value = ($value == '') ? '<br/>' : $value; $value = ($value == '') ? '<br/>' : $value;
$html = "<textArea class='tmceEditor' id='form[" . $this->name . "]' name='form[" . $this->name . "]' >" . htmlentities($value, $html = "<textArea class='tmceEditor' id='form[" . $this->name . "]' name='form[" . $this->name . "]' >" . htmlentities($value,
ENT_QUOTES, 'UTF-8') . "</textarea>"; ENT_QUOTES, 'UTF-8') . "</textarea>";