Closed mbabker closed 6 years ago
Good catch! Thank you very much!
This actually broke the data export completely. I am reverting it.
Well, that sucks.
Don't worry though, I found the real root cause and how to properly fix it ;)
If you are wondering, your solution doesn't work when you are adding multiple nodes with the same name as was the case with data export. However, the root cause is not node adoption but node export. Values in added child nodes should have entities encoded. That was a simple solution, just in a different place.
Basically, the Export helper's
adoptChild
method runs into this scenario if you export data where a field has ampersands in the value (such as if you have a core Joomla user with the French help site saved as their preference, below is a full JSON string which triggers the issue).