-
Notifications
You must be signed in to change notification settings - Fork 117
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
Items created from branches on core database looses layout on sync #318
Comments
@mortenengel Please try this on Unicorn 4.0.4. 4.0.3 had a number of problems related to language fallback and enforced version presence, that could be the root cause of this. If the problem is confirmed to exist on 4.0.4, I will open an investigation. |
Just tested, The bug still happens in Unicorn 4.0.4 |
Aight, thanks :-) Will dig into it. |
Confirmed. The following YAML does indeed re-create the item, with blank presentation details. Additionally, as described, removing the BranchID from the YAML, re-creates the item including the layout details.
|
Updating the item in question by reinserting the BranchID field then telling Unicorn to sync again (update the existing item) leaves the Layout intact. |
|
So it's a bug. Just not a Rainbow/Unicorn bug. I re-created all of the steps above, with these changes. After creating the "test2" item, I went to "Applications" and did a Sitecore native "Serialize Tree". Then I deleted "test2" and then using Sitecore native serialization, did "Update Tree". The "test2" item came back - with presentation details cleared. Exactly like when Unicorn does it. I'll still see if there's anything we can do on our side, but the issue lies in the core product. To the best of my knowledge. .item file as evidence.
|
Duplicate of #283 |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Creating an item from a master on the core database and then adding a layout to it, serializes nicely. But when you want to sync this to another instance, the layout is gone.
If the current behavior is a bug, please provide the steps to reproduce.
This seems to happen anywhere on the core database, from any item that is created from the masters under core:/sitecore/masters. I have done a workaround and just created my template directly from the template rather than from the branch - or simply by removing the following line from the .yml before syncing:
BranchID: "1f0770ea-8b77-4110-91aa-cc00dee102dd"
What is the expected behavior?
Having the item, but with the layout.
Please mention your Sitecore version and Unicorn version.
Tested on Sitecore 8.2 and 9.0, Unicorn 4.0.3
Took me a while to find the exact cause of this bug, unfortunately I don't have time to find a code solution right now, but if you'd like me to, let me know and I'll figure it out when I have more time.
The text was updated successfully, but these errors were encountered: