Improve activity stream/notification for task update events and add new notification for swimlane change
This commit is contained in:
@@ -227,6 +227,11 @@ class ProjectActivity extends Base
|
||||
return t('%s moved the task #%d to the column "%s"', $event['author'], $event['task']['id'], $event['task']['column_title']);
|
||||
case Task::EVENT_MOVE_POSITION:
|
||||
return t('%s moved the task #%d to the position %d in the column "%s"', $event['author'], $event['task']['id'], $event['task']['position'], $event['task']['column_title']);
|
||||
case Task::EVENT_MOVE_SWIMLANE:
|
||||
if ($event['task']['swimlane_id'] == 0) {
|
||||
return t('%s moved the task #%d to the first swimlane', $event['author'], $event['task']['id']);
|
||||
}
|
||||
return t('%s moved the task #%d to the swimlane "%s"', $event['author'], $event['task']['id'], $event['task']['swimlane_name']);
|
||||
case Subtask::EVENT_UPDATE:
|
||||
return t('%s updated a subtask for the task #%d', $event['author'], $event['task']['id']);
|
||||
case Subtask::EVENT_CREATE:
|
||||
|
||||
Reference in New Issue
Block a user