From 6e1a074b5312e6f766e3634dbc1b1ccee127fcce Mon Sep 17 00:00:00 2001 From: Bastian Waidelich Date: Mon, 2 Sep 2024 19:00:08 +0200 Subject: [PATCH 1/2] BUGFIX: Fix autoselection of ancestor nodes in Workspace module Fixes: #5231 --- .../Private/Templates/Module/Management/Workspaces/Show.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Neos.Neos/Resources/Private/Templates/Module/Management/Workspaces/Show.html b/Neos.Neos/Resources/Private/Templates/Module/Management/Workspaces/Show.html index 39a109bf2fa..044237ea1d5 100644 --- a/Neos.Neos/Resources/Private/Templates/Module/Management/Workspaces/Show.html +++ b/Neos.Neos/Resources/Private/Templates/Module/Management/Workspaces/Show.html @@ -29,7 +29,7 @@ - + @@ -166,7 +166,7 @@ } var movedOrNewParentDocuments = jQuery(this).closest('table').find('.neos-document[data-ismoved="true"], .neos-document[data-isnew="true"]').filter(nodePathStartsWith(currentNodePath)); jQuery(movedOrNewParentDocuments).each(function(index, movedParentDocument) { - jQuery('tr[data-nodepath^="' + jQuery(movedParentDocument).data('nodepath') + '"] td.check input').prop('checked', checked); + jQuery('tr.neos-change.document-' + jQuery(movedParentDocument).data('identifier') + ' td.check input').prop('checked', checked); }); } From 90362d2b170bca13f4d1d984d0e68157ca18e6b7 Mon Sep 17 00:00:00 2001 From: Bastian Waidelich Date: Mon, 2 Sep 2024 19:13:47 +0200 Subject: [PATCH 2/2] Tweak JS --- .../Private/Templates/Module/Management/Workspaces/Show.html | 1 + 1 file changed, 1 insertion(+) diff --git a/Neos.Neos/Resources/Private/Templates/Module/Management/Workspaces/Show.html b/Neos.Neos/Resources/Private/Templates/Module/Management/Workspaces/Show.html index 044237ea1d5..223043a654c 100644 --- a/Neos.Neos/Resources/Private/Templates/Module/Management/Workspaces/Show.html +++ b/Neos.Neos/Resources/Private/Templates/Module/Management/Workspaces/Show.html @@ -166,6 +166,7 @@ } var movedOrNewParentDocuments = jQuery(this).closest('table').find('.neos-document[data-ismoved="true"], .neos-document[data-isnew="true"]').filter(nodePathStartsWith(currentNodePath)); jQuery(movedOrNewParentDocuments).each(function(index, movedParentDocument) { + jQuery('td.check input', movedParentDocument).prop('checked', checked); jQuery('tr.neos-change.document-' + jQuery(movedParentDocument).data('identifier') + ' td.check input').prop('checked', checked); }); }