[TYPO3-core] RFC: Bug 5556: IRRE - RTE in child elements overwrites field in parent element

Oliver Hader oh at inpublica.de
Fri Jul 13 20:16:15 CEST 2007

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

Oliver Hader
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005556_v6.patch
Type: text/x-patch
Size: 6286 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070713/d102a714/attachment.bin 

More information about the TYPO3-team-core mailing list