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

Ralf Hettinger ng at ralfhettinger.de
Fri Nov 20 22:07:25 CET 2009


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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0012688-4.3-RC1.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091120/8407bd62/attachment.asc>


More information about the TYPO3-team-core mailing list