[TYPO3-core] RFC #8635: MM-relations lost during copying/localizing
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Jun 9 09:47:54 CEST 2008
This is an SVN patch request.
Type: Bugfix
Bugtracker references: http://bugs.typo3.org/view.php?id=8635
Branches: TYPO3_4-2, trunk
Problem:
Copying (or localizing) records with MM-relations to other database
tables will not copy over the MM-field contents (the relations).
Instead you will probably get an error like:
"102: These fields are not properly updated in database: (category)
Probably value mismatch with fieldtype."
This might happen for example when copying an tt_news record with
categories. The categories assigned to the element are not copied, which
is pretty critical.
The bug might affect other areas on copy/localize (e.g. flexforms, like
someone reported in the -dev list some days ago).
Solution:
The origin of the bug is a patch introduced for fixing the problem with
shifting datetime on copy:
http://forge.typo3.org/repositories/diff/typo3v4-core?rev=3735
This turned off any transformation/processing on copy/localize, which
turns out to be wrong, at least for MM-relations (might be the case for
other transformations as well).
The solution is to first reverse the above listed patch and then have
the fix applied only to the very specific timezone shifting
transformation to fix that problem, which is what the attached patch does.
Note:
this is pretty critical for inclusion before 4.2.1 release!
Thanks for Matthias Glatt for reporting this.
Cheers,
Ernesto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-8635-buggyTCE-on-copy.diff
Type: text/x-diff
Size: 1248 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080609/e40b6012/attachment.diff
More information about the TYPO3-team-core
mailing list