Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1035 A bug in the appendNode method of Magento\Framework\Simplexml\Element.php causes values to be lost in very specific cases. This will fix it. The existing unit test for appendNode has been updated as well. Bug: When appending a node that has an attribute and no child nodes, the code will take the code path for having children. This is because the result of $source->children() evaluates to TRUE when a node has attributes and no children. Fix: Changing to call from [children()] to [count()] fixes the issue.
- Loading branch information