-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Umbraco copy content with descendants does not preserve sorting order #13464
Comments
Hi @denhaandrei, thanks for reaching our 💪
The issue is about creating a Content node with nested Content nodes (descendants), sorting them and copying the parent Content node - as a result, the sorted order of the copied content nodes is not persisted. In other words:
We should end up with the following structure:
Investigation + notes:Looking at the database ( Inspecting the code, it seems like the Umbraco-CMS/src/Umbraco.Core/Services/ContentService.cs Lines 2719 to 2739 in 4df012e
An idea could be to pass on the Umbraco-CMS/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs Lines 909 to 915 in 3a01176
🔴 Things to watch out for:
|
I am working on this |
(cherry picked from commit fd992f6)
Hi there, thank you so much for solving this issue in Umbraco 10+. My team at work are currently using Umbraco 8 for an application we have inherited from another client, and have currently encountered this issue as well. I was hoping to see if our team could backport this fix to Umbraco 8, but it appears the fix in the linked PR relies on some features introduced in Umbraco 9. If we wanted to backport this to Umbraco 8, are there any pointers or suggestions on what we should look to do that you guys could suggest? (even a slightly hacky solution will work). |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
10.3.2
Bug summary
Hi,
I'm using late Umbraco 10 and my content editors asked me if there's any possible way to copy nested content items with sorting preserved when they copy their parent item.
For example, when I copy an item with the structure:
I will get a new item:
Specifics
Please note, it reproduce for all Umbraco version 10
Steps to reproduce
Expected result / actual result
Actual Result:
The content copied as created without applying new sorting:
Expected Result:
The content copied with the actual applying sorting:
The text was updated successfully, but these errors were encountered: