BUG 11111 "Every time yo open the JavaScript editor a blank space..." SOLVED

- Every time yo open the JavaScript editor a blank space will be added automatically on top.
- Problem solved, deleted node with character \n
* Available from version ProcessMaker-2.0.47 (2.5.1)
This commit is contained in:
Luis Fernando Saisa Lopez
2013-04-02 17:22:29 +00:00
parent d6166e0df8
commit cd24cb54bd

View File

@@ -225,9 +225,7 @@ class dynaFormHandler
unset($attributes['#text']);
}
if (isset($attributes['#cdata'])) {
$newnode->appendChild($this->dom->createTextNode("\n"));
$newnode->appendChild($this->dom->createCDATASection($attributes['#cdata']));
$newnode->appendChild($this->dom->createTextNode("\n"));
unset($attributes['#cdata']);
}