[TYPO3-core] RFC: Bugfix #12688: MM relations: rollback not working / sys_history wrong

Ralf Hettinger ng at ralfhettinger.de
Wed Jan 6 12:44:15 CET 2010


Reminder #1 on occasion of the upcoming 4.3.1.

Regards
Ralf

Am 20.11.2009 22:07 schrieb Ralf Hettinger:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12688
> http://bugs.typo3.org/view.php?id=5184
> 
> Branches: trunk
> 
> Problem:
> If changing fields which reference MM relations, sys_history will log
> these changes by storing a different relation count instead of the
> different referenced records. A rollback will therefore restore the
> wrong relations (relation to a record with uid=old relation count will
> be restored) and the record's history shows wrong information.
> Furhtermore, if only the MM-relations change on updating a record but
> the relation count stays the same, nothing at all will be stored to
> sys_log / history, since the similarity check will result in no update
> required.
> 
> Solution:
> Instead of logging the relation count, log the referenced uids to
> sys_history on MM fields, if they changed
> (http://bugs.typo3.org/view.php?id=12688 ). Always perform an update on
> records, if they contain MM-relations
> (http://bugs.typo3.org/view.php?id=5184 ).
> 
> Cheers,
> Ralf


More information about the TYPO3-team-core mailing list