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

Oliver Hader oh at inpublica.de
Mon Jul 16 15:11:01 CEST 2007

Thank you Michael!

FYI: Committed to SVN:
* TYPO3_4-1 (rev. 2422)
* Trunk (rev. 2423)


Michael Stucki schrieb:
> Couldn't reproduce the problem, but at least nothing did break after
> applying the patch. I trust you know what you are doing here! :-)
> - michael
> Oliver Hader wrote:
>> This is a SVN patch request.
>> Problem:
>> 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.
>> Solution:
>> 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.
>> Comments:
>> 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=5556
>> http://bugs.typo3.org/view.php?id=5913 (test extension)
>> Branch: TYPO3_4-1 & Trunk
Oliver Hader

More information about the TYPO3-team-core mailing list