[TYPO3-core] RFC: Bug 5556: IRRE - RTE in child elements overwrites field in parent element
michael at typo3.org
Mon Jul 16 14:39:07 CEST 2007
Couldn't reproduce the problem, but at least nothing did break after
applying the patch. I trust you know what you are doing here! :-)
Oliver Hader wrote:
> This is a SVN patch request.
> Child records using IRRE and RTE that were dynamically created (not
> saved yet), overwrite the an existing RTE field with the editor number
> "0". The problem is located in the RTEcounter variable in TCEforms. It
> will be incremented each time a RTE is rendered. When a new child record
> is rendered using AJAX this process doesn't know how many RTE instances
> have been created before.
> Thus each new dynamically created child has the RTEcounter set to "1" -
> and so the first RTE instance gets overwritten.
> On creating new child records now the number of RTE instances is sent
> with the AJAX call and the RTEcounter variable in TCEforms gets adjusted.
> You can test this with the extension in the bugtracker at bug #5913.
> IRRE allowes to have multiple parallel AJAX calls. Thus, it was able to
> click on "create new" five times quickly and then could see each of the
> five children appearing one after another.
> In this concurrent situation it is not possible to determine and
> transport the mentioned RTEconter variable correctly. This is the reason
> why these concurrent AJAX requests for the "create new" button were
> disabled with this patch by a simple locking behaviour. The lock is
> released after the AJAX request has finished (sucessful or with error).
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=5913 (test extension)
> Branch: TYPO3_4-1 & Trunk
Use a newsreader! Check out
More information about the TYPO3-team-core