[BUGFIX] Select proper records in DBAL workspace restrictions 41/56941/7
authorBenni Mack <benni@typo3.org>
Thu, 15 Nov 2018 10:28:11 +0000 (11:28 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 16 Nov 2018 08:51:35 +0000 (09:51 +0100)
commitcda6c030088a4160ed4446e76db37ce1a0f43f62
tree41d96e72f7f63a4f73b2b602705378017fdb1a93
parent5335d9aaaee4b7a2b0c13d8d8a1f9aeea3e4fb39
[BUGFIX] Select proper records in DBAL workspace restrictions

A new WorkspaceRestriction is added to solve all issues
once and for all.

For now, this restriction is used to only show
records in pagetree without having duplicated.

Resolves: #84985
Releases: master, 8.7
Change-Id: I22d5f276460107802bef3d390e6781434f1c28d3
Reviewed-on: https://review.typo3.org/56941
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Achim Fritz <af@achimfritz.de>
Tested-by: Achim Fritz <af@achimfritz.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Tree/Repository/PageTreeRepository.php
typo3/sysext/core/Classes/Database/Query/Restriction/WorkspaceRestriction.php [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/9.5.x/Important-84985-UnifiedWorkspaceRestrictionForDatabaseQueries.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/WorkspaceRestrictionTest.php [new file with mode: 0644]