Actions
Bug #101903
openWorkspaces: Subpage of to-be-deleted page cannot be moved.
Status:
New
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2023-09-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Consider the following page structure:
- New parent page
- Old parent page
- Subpage
Within a workspace, move "Subpage" into "New parent page" and delete "Old parent page". Publish the workspace.
Expected:- "Subpage" is now a child of "New parent page"
- "Old parent page" will be deleted
- "Subpage" is deleted
- "Old parent page" is deleted
Updated by Hannes Lau 8 months ago ยท Edited
I currently use this patch:
diff --git a/www/patches/typo3/cms-workspaces/delete-after-move.patch b/www/patches/typo3/cms-workspaces/delete-after-move.patch
new file mode 100644
index 0000000..f964ea7
--- /dev/null
+++ b/www/patches/typo3/cms-workspaces/delete-after-move.patch
@@ -0,0 +1,17 @@
+Index: Classes/Service/WorkspaceService.php
+IDEA additional info:
+Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
+<+>UTF-8
+===================================================================
+diff --git a/Classes/Service/WorkspaceService.php b/Classes/Service/WorkspaceService.php
+--- a/Classes/Service/WorkspaceService.php
++++ b/Classes/Service/WorkspaceService.php (date 1694530053792)
+@@ -269,7 +269,7 @@
+ }
+ unset($newRecord);
+ $moveRecs = $this->getMovedRecordsFromPages($table, $pageList, $wsid, $stage);
+- $recs = array_merge($recs, $newRecords, $moveRecs);
++ $recs = array_merge($newRecords, $moveRecs, $recs);
+ $recs = $this->filterPermittedElements($recs, $table);
+ if (!empty($recs)) {
+ $output[$table] = $recs;
Would this be a candidate for a merge request?
Updated by Riccardo De Contardi 2 months ago
Still happens on both TYPO3 12 and 13 (latest main)
Actions