umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.4k stars 2.66k forks source link

Umbraco 8.16.0 Save and Preview for Nested Content not working #14600

Closed JNidhi2189 closed 1 year ago

JNidhi2189 commented 1 year ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

Umbraco 8.16.0

Bug summary

Adding content to any nested property for example Rich Text element/block and try to Save and preview and not publish. When we try seeing the change in the preview mode its fine but it also gets published on the main site. we don't want it to get published unless we press publish button. This is happening for nested content type with version 8.16.0. Nested content doesn't gets published when we save and preview for the first time when we add anything to it. But once that nested property is published and then you modify it to see changes only in Preview it also gets published.

Specifics

No response

Steps to reproduce

Create a new doctype and add nested content type to it and also add RTE property to that doctype. Save it without adding any content to the properties. After that add content to both and Save and Preview. Both properties work fine. But then modify the content in both and then save and preview. RTE property content doesn't get published on the main site but Nested content gets published.

Any solution to avoid nested content to get published on Save and Preview.?

Expected result / actual result

Expected Result: Nested Content to only publish when publish button is pressed. Actual result: Nested content is getting published on Save and Preview

github-actions[bot] commented 1 year ago

Hi there @JNidhi2189!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

kjac commented 1 year ago

Hi @JNidhi2189,

Thank you for reaching out 😄

I can't reproduce this. Albeit I'm testing on the latest V8 (8.18.8), this shouldn't change anything.

Perhaps you are involuntarily seeing draft content when browsing the site. This happens if you don't terminate the preview session. Try browsing the site in an incognito browser (or another browser) - does it show draft content?

This is what I see when testing:

image

JNidhi2189 commented 1 year ago

Thanks @kjac for your efforts. We found that it was an issue with our code first package and after fixing that its all working fine. Thanks for your time.