Changeset View
Changeset View
Standalone View
Standalone View
plugins/tasklist/tasklist.php
Show First 20 Lines • Show All 2,082 Lines • ▼ Show 20 Lines | public function mail_import_itip() | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// set status=CANCELLED on CANCEL messages | // set status=CANCELLED on CANCEL messages | ||||
if ($task['_method'] == 'CANCEL') { | if ($task['_method'] == 'CANCEL') { | ||||
$task['status'] = 'CANCELLED'; | $task['status'] = 'CANCELLED'; | ||||
} | } | ||||
// update attachments list, allow attachments update only on REQUEST (#5342) | |||||
if ($task['_method'] == 'REQUEST') { | |||||
$task['deleted_attachments'] = true; | |||||
} | |||||
else { | |||||
unset($task['attachments']); | |||||
} | |||||
// show me as free when declined (#1670) | // show me as free when declined (#1670) | ||||
if ($status == 'declined' || $task['status'] == 'CANCELLED') { | if ($status == 'declined' || $task['status'] == 'CANCELLED') { | ||||
$task['free_busy'] = 'free'; | $task['free_busy'] = 'free'; | ||||
} | } | ||||
$success = $this->driver->edit_task($task); | $success = $this->driver->edit_task($task); | ||||
} | } | ||||
else if (!empty($status)) { | else if (!empty($status)) { | ||||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |