Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jon 8 posts 28 karma points
    Apr 07, 2011 @ 21:07
    Jon
    0

    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?

  • Daniel Bardi 927 posts 2562 karma points
    Apr 07, 2011 @ 21:11
    Daniel Bardi
    2

    I think BeforeDelete fires before media is removed from Recycle Bin?

    Try BeforeMoveToTrash...

  • Jon 8 posts 28 karma points
    Apr 07, 2011 @ 21:23
    Jon
    0

    That did it!

    Thank You!

  • Daniel Bardi 927 posts 2562 karma points
    Apr 07, 2011 @ 21:41
    Daniel Bardi
    0

    Glad to help.... :)

Please Sign in or register to post replies

Write your reply to:

Draft