function post_deleteFromDB() { $job = new Ticket(); $job->getFromDB($this->fields["tickets_id"]); $job->updateDateMod($this->fields["tickets_id"]); // Add log entry in the ticket $changes[0] = 0; $changes[1] = ''; $changes[2] = $this->fields['id']; Log::history($this->getField('tickets_id'), 'Ticket', $changes, $this->getType(), Log::HISTORY_DELETE_SUBITEM); $options = array('followup_id' => $this->fields["id"], 'is_private' => $this->fields['is_private']); NotificationEvent::raiseEvent('delete_followup', $job, $options); }