[BUGFIX] Set correct workspace ID when updating referenceIndex for files 44/36044/7
authorMarkus Klösges <mkloesges@gmx.de>
Fri, 16 Jan 2015 13:00:35 +0000 (14:00 +0100)
committerFrans Saris <franssaris@gmail.com>
Fri, 30 Jan 2015 22:42:06 +0000 (23:42 +0100)
commitabee33c5a35a23a9aec8234b73952a33ff8eb8b2
treea33539e684b724d84b6b026558e680263081f8fd
parenta1db9a24a27fbe97ff3b802cd0be7c72107b7133
[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/36044
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Tested-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Database/ReferenceIndex.php
typo3/sysext/version/Classes/Hook/DataHandlerHook.php