Hi,
I want to block the delete action for the ocurrence of recurring event from past date.
So I thought to include a condition in “onBeforeEventDelete()” and return false to block the elimination.
scheduler.attachEvent("onBeforeEventDelete", function(event_id, event_object){
/*
if (event_object.start_date < new Date()) {
return false;
}
return true;
*/
return false; // all events should not be able to be removed
});
However, the delete is performed in the DB… the dataprocessor inserted an event with rec_type = ‘none’ to delete the ocurrence.
What I can do to block the elimination?
Thanks.
PS: This problem occurs only with the “occurrences”, for the rest of the cases (series, no recurring) onBeforeEventDelete() works well.