diff options
| author | Frédéric Guillot <fred@kanboard.net> | 2014-09-16 16:35:43 +0200 |
|---|---|---|
| committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-16 16:35:43 +0200 |
| commit | a76939066b01b9dd39ff44a8d3aa3165dc7b3eaf (patch) | |
| tree | 0687c85ec5714f82ad56000e17f69b373736ffd3 /app/Model/TaskHistory.php | |
| parent | aca4207a94200ce4033de57baabc69afe5e3804e (diff) | |
Add more events and notifications for tasks
Diffstat (limited to 'app/Model/TaskHistory.php')
| -rw-r--r-- | app/Model/TaskHistory.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Model/TaskHistory.php b/app/Model/TaskHistory.php index c81e3eb4..0615cba0 100644 --- a/app/Model/TaskHistory.php +++ b/app/Model/TaskHistory.php @@ -122,6 +122,7 @@ class TaskHistory extends BaseHistory public function getTitle(array $event) { $titles = array( + Task::EVENT_ASSIGNEE_CHANGE => t('%s change the assignee of the task #%d', $event['author'], $event['task_id']), Task::EVENT_UPDATE => t('%s updated the task #%d', $event['author'], $event['task_id']), Task::EVENT_CREATE => t('%s created the task #%d', $event['author'], $event['task_id']), Task::EVENT_CLOSE => t('%s closed the task #%d', $event['author'], $event['task_id']), @@ -141,6 +142,7 @@ class TaskHistory extends BaseHistory public function attachEvents() { $events = array( + Task::EVENT_ASSIGNEE_CHANGE, Task::EVENT_UPDATE, Task::EVENT_CREATE, Task::EVENT_CLOSE, |
