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
Follow events Entry::EVENT_BEFORE_DELETE & Entry::EVENT_AFTER_DELETE are not fired when an entry is deleted by the 'Delete entry for this site' action https://i.imgur.com/epteQ7a.png
Steps to reproduce
Attach any code to these events and delete the entry only on a specific site
Thanks for reporting! Deleting an element from a site isn't really a delete operation since the element still appears on other sites. I've opened a PR to add new events for this specific use case which is currently targeting a 4.4 release.
In the mean time, you might be able to solve your use case with the events called when saving elements, but that will depend a bit on your exact use case.
What happened?
Description
Follow events
Entry::EVENT_BEFORE_DELETE
&Entry::EVENT_AFTER_DELETE
are not fired when an entry is deleted by the 'Delete entry for this site' actionhttps://i.imgur.com/epteQ7a.png
Steps to reproduce
Attach any code to these events and delete the entry only on a specific site
Expected behavior
The code in the events should fire
Actual behavior
Code inside following events not fired
Craft CMS version
Craft Pro 4.2.8
PHP version
8.1.10
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: