[TYPO3-core] RFC #8635: MM-relations lost during copying/localizing

Steffen Kamper steffen at sk-typo3.de
Mon Jun 9 10:08:00 CEST 2008


"Ernesto Baschny [cron IT]" <ernst at cron-it.de> schrieb im Newsbeitrag 
news:mailman.1.1212997677.11991.typo3-team-core at lists.netfielders.de...
> 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
>

Hi Ernesto,

+1 by reading. When i understand right, checkValue has to be processed in 
any case.
Really important one! Hope to have time to test it today.

vg Steffen 




More information about the TYPO3-team-core mailing list