Hi,
I've been trying to use the redirector plugin for adding, editing, rescheduling and deleting events.
All is well except for deleting. I tried implementing Dan O's method for editing, that is, copying the after_schedule_event.pl file and renaming it after_delete_event.pl, but it redirects to Jan. 1970.
I tried changing:
my ($ss, $mi, $hh, $dd, $mm, $yy) = gmtime($db->getRecord({'event_id' => $in{'EVENT_id'}})->{start});
to:
my ($ss, $mi, $hh, $dd, $mm, $yy) = gmtime($db->getRecord({'event_id' => $Template::event->{'id'}})->{start});
in the new after_delete_event.pl but still 1970. I tried copying the code from after_delete_event.pl to the end of the delete_event subroutine in calendar_admin.pl but still 1970. Is there anything else I can try? Thank you.
------------------