Bug #101903
open
Workspaces: Subpage of to-be-deleted page cannot be moved.
Added by Hannes Lau 8 months ago.
Updated 2 months ago.
Description
Consider the following page structure:
- New parent page
- Old parent page
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
Actual:
- "Subpage" is deleted
- "Old parent page" is deleted
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?
Also available in: Atom
PDF