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

Michael Klapper mick.mail.typo3 at googlemail.com
Thu Oct 29 15:05:28 CET 2009


Hi,

tested the behavior of publishing records and their possibility to roll 
back the changes on the live record.

The patch generates the required history /sys_log entries to enable the 
roll back after publishing to the live WS.

  +1 by testing.

Mick


Tolleiv.Nietsch schrieb:
> 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
> 


More information about the TYPO3-team-core mailing list