Commit 15c1a325 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) fix addChild() ampersand escape issue

parent 9ee05bc3
......@@ -459,7 +459,9 @@ abstract class BaseField
$subnode = $node ;
} else {
if ($this->internalValue != "") {
$subnode = $node->addChild($this->getInternalXMLTagName(), $this->internalValue);
$newNodeName = $this->getInternalXMLTagName();
$subnode = $node->addChild($newNodeName);
$node->$newNodeName = $this->internalValue;
} else {
$subnode = $node->addChild($this->getInternalXMLTagName());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment