PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
FS#145 - Opt_Xml_Scannable::insertBefore() adds a node twice
Opened by Zyx (Zyx) - Wednesday, 23 December 2009, 00:36 GMT-7
Last edited by Zyx (Zyx) - Wednesday, 23 December 2009, 00:44 GMT-7
If the reference node in Opt_Xml_Scannable::insertBefore() is specified as an object, the new node is added twice before it. This happens, because the loop is not stopped after adding a node, and once we create a hole in the array index enumeration, in the next loop we jump right into the same reference node that has been already moved. To fix the problem, we just need to break the loop.
Wednesday, 23 December 2009, 00:44 GMT-7
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 272