From abdfa46cfcc06175dea10b5e285fe5b2331b6ead Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 1 Jul 2016 12:33:18 -0400 Subject: Fixed empty title for web notification with only one overdue task --- app/Template/dashboard/notifications.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/Template') diff --git a/app/Template/dashboard/notifications.php b/app/Template/dashboard/notifications.php index e0e9b878..3b70b49f 100644 --- a/app/Template/dashboard/notifications.php +++ b/app/Template/dashboard/notifications.php @@ -36,10 +36,8 @@ - text->contains($notification['event_name'], 'task.overdue')): ?> - 1): ?> - - + text->contains($notification['event_name'], 'task.overdue') && count($notification['event_data']['tasks']) > 1): ?> + url->link($notification['title'], 'WebNotificationController', 'redirect', array('notification_id' => $notification['id'], 'user_id' => $user['id'])) ?> -- cgit v1.2.3