[BUGFIX] Edits disappear when published twice 69/26769/7
authorStefan Rotsch <stefan.rotsch@aoemedia.de>
Fri, 10 Jan 2014 09:34:38 +0000 (10:34 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Wed, 5 Aug 2015 21:58:55 +0000 (23:58 +0200)
commitedc1150f139647e812cd2969c400f16ae79b665e
tree40951dacaa1ac25048c959d9dfa0e953d1dd8b7a
parent4ad8a3b805c62200638485acf28ce6fe182c1f65
[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/26769
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
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]