Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > Custom Event Handler OnBeforeDelete View modes: 
User avatar
Certified Developer 8
Certified Developer 8
ryan-datausa - 2/17/2010 7:53:43 PM
   
Custom Event Handler OnBeforeDelete
After upgrading to version 5.0, when deleting a user the OnBeforeDelete handler in the CustomDataHandler class with the following method signature is no longer called:
OnBeforeDelete(string className, int id, object conn)

The OnBeforeDelete handler with the following method signature is called, but former method is not called:
OnBeforeDelete(object dataObj, object conn)

I have not tested this with deleting other types to see if they are affected as well.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/1/2010 8:27:35 AM
   
RE:Custom Event Handler OnBeforeDelete
Hello Ryan,


The OnBeforeDelete(string className, int id, object conn) method works for classes but not for users.

If you use the method for users please use the OnBeforeDelete(object dataObj, object conn) alternative which works for all objects.


Best regards,
Helena Grulichova