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
vnali
changed the title
[4.x]: Delete element for this site removes the element for all sites in some conditions
[4.x]: 'Delete element for this site' removes the element for all sites in some conditions
Apr 24, 2023
What happened?
Description
'Delete element for this site' removes the element for all sites if all the other remaining sites are disabled or draft
It seems where the Craft 'Separate the multi-site elements from the single-site elements', it doesn't check for disabled items and drafts with
->status(null)->drafts(null)
, so Craft thinks it is single-site element and delete it completely if all other sites are disabled or drafts.Another problem, i think, it is $firstElement::find()->id($multiSiteElementIds)->site('*')->unique() , where the Craft doesn't check disabled and drafts again, when try to create query and pass for resaving element and cache invalidation.
Craft CMS version
4.4.7.1
The text was updated successfully, but these errors were encountered: