[BUGFIX] Edits disappear when published twice 92/42592/2
authorStefan Rotsch <stefan.rotsch@aoemedia.de>
Fri, 10 Jan 2014 09:34:38 +0000 (10:34 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Thu, 13 Aug 2015 17:52:22 +0000 (19:52 +0200)
commit8bcc7693a2e14b76f3e765671e43377840bdbc65
tree90d72af5ae8360ff2e91297945ed949bf8fedf67
parent0fe4901277cdadf3aee3f226c0939ce423c0fce7
[BUGFIX] Edits disappear when published twice

When accidentally publishing an edit twice, eg. by using multiple
browser tabs, all modifications are reverted and the changes are no
longer visible in the workspace.

In the database, the old workspace version of the record has wsid = 0
and pid = -1 and is thus invisible, but still contains the modified
content.

Resolves: #54924
Releases: master, 6.2
Change-Id: I8805737540f030ae24331d33590b71629c7f3179
Reviewed-on: http://review.typo3.org/42592
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php
typo3/sysext/workspaces/Tests/Functional/ActionHandler/ActionHandlerTest.php [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/ActionHandler/Fixtures/pages.xml [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/ActionHandler/Fixtures/sys_workspace.xml [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/ActionHandler/Fixtures/tt_content.xml [new file with mode: 0644]