Show changes in task update notifications

This commit is contained in:
Frederic Guillot
2015-06-13 22:55:01 -04:00
parent a9f9761539
commit a785810f2d
3 changed files with 61 additions and 38 deletions

View File

@@ -41,6 +41,7 @@ class NotificationSubscriber extends \Core\Base implements EventSubscriberInterf
switch (get_class($event)) {
case 'Event\TaskEvent':
$values['task'] = $this->taskFinder->getDetails($event['task_id']);
$values['changes'] = isset($event['changes']) ? $event['changes'] : array();
break;
case 'Event\SubtaskEvent':
$values['subtask'] = $this->subtask->getById($event['id'], true);