I am trying to subscribe to the Media.BeforeDelete event. For some reason the event handler is not getting called.
I have a class that inherits from ApplicationBase. I have subscribed to other events (Media.AfterSave, Document.AfterPublish, and Document.AfterUnPublish) and the handlers for them are being called properly.
Media.BeforeDelete event not firing
I am trying to subscribe to the Media.BeforeDelete event. For some reason the event handler is not getting called.
I have a class that inherits from ApplicationBase. I have subscribed to other events (Media.AfterSave, Document.AfterPublish, and Document.AfterUnPublish) and the handlers for them are being called properly.
Has anyone else experienced a similar issue?
I think BeforeDelete fires before media is removed from Recycle Bin?
Try BeforeMoveToTrash...
That did it!
Thank You!
Glad to help.... :)
is working on a reply...