[BUGFIX] Set correct workspace ID when updating referenceIndex for files 81/36481/3
authorMarkus Klösges <mkloesges@gmx.de>
Fri, 16 Jan 2015 13:00:35 +0000 (14:00 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 26 Feb 2015 23:18:14 +0000 (00:18 +0100)
commitb66a0f09da2fb6f2890a5dd5e0fa92e0880d681a
tree4ecf70554a22750db841bf878ea6c2edcbab481c
parentb6b6da31cb572184c7cac553922134a4f6a76509
[BUGFIX] Set correct workspace ID when updating referenceIndex for files

When publishing a workspace the referenceIndex entries of the affected
sys_file_reference rows were not updated with the new workspace. That's
because the user is always in the affected workspace and therefore
the workspace is not set to live as expected.
Now updating referenceIndex for both workspaces when swapping.

Resolves: #64253
Releases: master, 6.2
Change-Id: Icfb4fcd1ae92da4ea881105b387c3d6db20ece95
Reviewed-on: http://review.typo3.org/36481
Tested-by: Michael Schams <typo3@2014.trash.schams.net>
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Database/ReferenceIndex.php
typo3/sysext/version/Classes/Hook/DataHandlerHook.php