[TYPO3-core] RFC: #6954: Bug: History/undo information disappears after publication

Tolleiv.Nietsch info at tolleiv.de
Mon Oct 26 14:00:21 CET 2009


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=6954

Branches:
trunk

Problem:
During workspace publishing TYPO3 doesn't create any additional 
log-entry therefore there's no way to perform a proper rollback of the 
changes afterwards.

Solution:
The attached patch creates a log-entry for each of the involved records 
(live and workspace overlay record).

Notes:
1) There are log-entires for the modifications (within the workspace) 
but these are related to the workspace-overlay record only, therefore 
they're not relevant if someone wants to roll back the changes which 
happened on the live record.
Due to this another solution could be to remap these log-entires to the 
live-record but I consider changes (update queries) within the sys_log 
and sys_history tables as dirty.
2) Imho creating a new log-entry with all changes is a cleaner way to 
resolve this - the rollback doesn't rollback the workspace-publish it 
just reverts the changes within the record.
3) It seems that there's another bug if you perform a rollback within 
the workspace. Imho in this case TYPO3 should treat the rollback like 
editing the record, but it performs the changes directly. So to check 
the proposed change I'd suggest to check the database-entries (sys_log 
and sys_history) and use the rollbacks within the Live workspace.

Cheers,
Tolleiv

-- 
Tolleiv Nietsch
www.tolleiv.de - www.aoemedia.de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0006954-historyDuringPublishing.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091026/dbe1d555/attachment.txt>


More information about the TYPO3-team-core mailing list