You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Delete For Site behavior appears to be inconsistent with respect to soft-/hard-deletion:
If I delete an entry that is only enabled in one site, the entry is soft-deleted and appears in Trashed.
If I delete a multi-site-enabled entry that is currently only active on one site, the entry is soft-deleted and appears in Trashed.
If I delete a multi-site-enabled entry that is currently active on multiple sites, the entry (for that site) is hard-deleted and cannot be restored.
This behavior is confusing; It feels like a bug.
As a content editor, I would expect that, if soft-deletes are enabled for entries, an entry I delete from a site should be recoverable from Trashed, no matter how many sites it's active in at the time of deletion.
Steps to reproduce
Accidentally Delete-For-Site an entry that is only enabled in one site. See that you can restore the entry from Trashed.
Accidentally Delete-For-Site an entry that is enabled in multiple sites. See that it's irrecoverably gone. Cry. 😢
Craft CMS 4.5.3
PHP 8.1.20
MySQL 8.0
The text was updated successfully, but these errors were encountered:
Deleting an entry for a site when that entry exists for other sites doesn’t go through the same delete mechanism as in other cases. When you delete a multi-site element for just one site, it still exists for the other sites. That’s why it behaves differently.
We'll discuss this one internally and I'll get back to you once I have an update.
Yeah this is currently working as intended, and it would take some schema changes to make this possible. Going to close, but feel free to open up a discussion requesting soft deletion for site-specific entry content.
What happened?
The Delete For Site behavior appears to be inconsistent with respect to soft-/hard-deletion:
This behavior is confusing; It feels like a bug.
As a content editor, I would expect that, if soft-deletes are enabled for entries, an entry I delete from a site should be recoverable from Trashed, no matter how many sites it's active in at the time of deletion.
Steps to reproduce
Craft CMS 4.5.3
PHP 8.1.20
MySQL 8.0
The text was updated successfully, but these errors were encountered: