Skip to content
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

[5.x]: Closing the Live Preview enables disabled entries #15670

Closed
elfacht opened this issue Sep 5, 2024 · 2 comments
Closed

[5.x]: Closing the Live Preview enables disabled entries #15670

elfacht opened this issue Sep 5, 2024 · 2 comments
Labels

Comments

@elfacht
Copy link

elfacht commented Sep 5, 2024

What happened?

Description

Editing an disabled entry with Live Preview will enable the entry despite the way of closing the preview (X or Save). That said, if I want to edit any entry before publishing it the entry will published as soon I would close the preview. This occurs on different projects using Craft CMS.

Steps to reproduce

  1. Create a new entry with disabled as default state.
  2. Open the Preview and edit something.
  3. Close the preview by clicking the X icon or Save button.
  4. Reload the entry without saving it (auto save)
  5. See the entry in a enabled state.

Expected behavior

While working in the Live Preview the CMS should respect the entry status as long I am not chaning it manually.

Actual behavior

The entry status changes as soon I am leaving the Live Preview, despite the desired status.

Craft CMS version

6.4.1 and prior

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for reporting that! Craft 5.4.2 is out with a fix.

@elfacht
Copy link
Author

elfacht commented Sep 9, 2024

Awesome, thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants