Bug #88144
closedTcaGroup does not respect deleted elements in a workspace
100%
Description
If you delete elements in a workspace, which are used within a group field, those deleted elements still show up in the workspace.
1. To test it, you can generate two sys_file_collections. Add those to one content element of CType uploads.
2. Now change to a workspace and delete one of the sys_file_collections.
3. Go back to editing the content element and see that there are still two file collections.
I've attached a testcase for this problem.
Files
Updated by Robert Vock over 5 years ago
I think the correct solution would be to remove the deletePlaceholders after getting the items from DB:
TcaGroup.php:86
$relationHandler->getFromDB();
$relationHandler->processDeletePlaceholder(); // <-- NEW
$relations = $relationHandler->getResolvedItemArray();
But it also appears that the RelationHandler does not correctly purges delete placeholders:
RelationHandler.php:1565
$queryBuilder->expr()->neq(
't3ver_wsid',
$queryBuilder->createNamedParameter(
$this->getWorkspaceId(),
\PDO::PARAM_INT
)
),
It removes all elements which are deleted in OTHER workspaces, not in the current. If I am correct, the neq should be a eq.
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review over 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Benni Mack about 5 years ago
- Related to Bug #88046: RelationHandler does not respect deleted elements added
Updated by Gerrit Code Review about 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review about 5 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review about 5 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review about 5 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review over 4 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review over 4 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review about 3 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60468
Updated by Gerrit Code Review about 3 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71929
Updated by Anonymous about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 81f6cb1c49926befddd3b2e2a762bed31fe52899.