[TYPO3-core] RFC: 12710 - Bugfix - "Paste after" function destroys l10n-overlay relations...
Tolleiv.Nietsch
info at tolleiv.de
Mon Nov 23 18:42:08 CET 2009
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=12710
Branches:
trunk
Problem:
L10n overlay-records (tt_content) loose the values of
copyAfterDuplFields (colPos,sys_language_uid) when the paste-after
options is used (e.g. within the list-module).
Solution:
This happens due to the wrong usage of fixCopyAfterDuplFields(), the
applied patch passes appropriate uid's into this method.
Steps to Reproduce:
Create a tt_content-record with one or more l10n-overlay records. Copy
the parent-records and use the paste-after function (list-module).
Notes:
The API is: fixCopyAfterDuplFields($table,$uid,$prevUid,$update,
$newData=array()). But as third parameter a pid is used - which copies
wrong data into the newly created record.
There are several other places within t3lib_tcemain where the API of
fixCopyAfterDuplFields is used in this way (pid instead of "origUid") -
this is the first one which caused problems for me.
Cheers,
Tolleiv
--
Tolleiv Nietsch
www.tolleiv.de - www.aoemedia.de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0012710-pasteAfterWithL10nRecords.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091123/b37746c6/attachment.txt>
More information about the TYPO3-team-core
mailing list