diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-07-01 12:33:18 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-07-01 12:33:18 -0400 |
commit | abdfa46cfcc06175dea10b5e285fe5b2331b6ead (patch) | |
tree | 0303dc234f542acd4273e9b8b304577ea21ba19e /app/Controller/WebNotificationController.php | |
parent | 662506941f6ad00be535c3d854f3500bc12676de (diff) |
Fixed empty title for web notification with only one overdue task
Diffstat (limited to 'app/Controller/WebNotificationController.php')
-rw-r--r-- | app/Controller/WebNotificationController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/WebNotificationController.php b/app/Controller/WebNotificationController.php index 46a42063..30e317f8 100644 --- a/app/Controller/WebNotificationController.php +++ b/app/Controller/WebNotificationController.php @@ -54,14 +54,14 @@ class WebNotificationController extends BaseController $this->response->redirect($this->helper->url->to( 'TaskViewController', 'show', - array('task_id' => $notification['event_data']['task']['id'], 'project_id' => $notification['event_data']['task']['project_id']), + array('task_id' => $this->notificationModel->getTaskIdFromEvent($notification['event_name'], $notification['event_data'])), 'comment-'.$notification['event_data']['comment']['id'] )); } else { $this->response->redirect($this->helper->url->to( 'TaskViewController', 'show', - array('task_id' => $notification['event_data']['task']['id'], 'project_id' => $notification['event_data']['task']['project_id']) + array('task_id' => $this->notificationModel->getTaskIdFromEvent($notification['event_name'], $notification['event_data'])) )); } } |