[TYPO3-core] RFC: #12719: Bugfix - tcemain copy/move/deleteL10nOverlayRecords is not fully versioning-aware

Rupert Germann rupi at gmx.li
Tue Nov 24 14:00:52 CET 2009


hi Tolliev,

+1 by reading and testing

before your patch I had weird results when copying localized records 
with versions. Now all works fine.

greets
rupert



Tolleiv.Nietsch schrieb:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12719
> 
> Branches:
> trunk
> 
> Problem:
> At the moment the copyL10nOverlayRecords, moveL10nOverayRecords and 
> deleteL10nOverlayRecords methods (within t3lib_tcemain, introduced with 
> 4.3) just use "any" record localization. This causes problems when a 
> version of the localized record exists. In this cause the subcommands 
> might operate on the wrong version of this record.
> 
> Solution:
> Due to the fact that all the triggered methods (copyRecord, moveRecord 
> and deleteAction) are workspace-aware they should only get live-uid's 
> and determine the context on their own.
> 
> Notes:
> The attached patch also removes two calls to t3lib_div::loadTCA() - 
> these aren't needed within the copy/move/deleteL10nOverlayRecord methods 
> because these methods only operate on $TCA[$table]['ctrl'] parts.
> 
> Cheers,
> Tolleiv
> 


More information about the TYPO3-team-core mailing list