From 02c69073f0eec0701c02a9342929ee758ccd53bb Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 25 Dec 2021 17:08:29 +0100 Subject: [PATCH] Add shift links to shift changed/assigned mails --- includes/mailer/shifts_mailer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/mailer/shifts_mailer.php b/includes/mailer/shifts_mailer.php index 07b7c256..c1695315 100644 --- a/includes/mailer/shifts_mailer.php +++ b/includes/mailer/shifts_mailer.php @@ -62,7 +62,8 @@ function mail_shift_change($old_shift, $new_shift) $message .= $new_shift['name'] . "\n"; $message .= $new_shift['title'] . "\n"; $message .= date('Y-m-d H:i', $new_shift['start']) . ' - ' . date('H:i', $new_shift['end']) . "\n"; - $message .= $new_room->name . "\n"; + $message .= $new_room->name . "\n\n"; + $message .= url('/shifts', ['action' => 'view', 'shift_id' => $new_shift['SID']]) . "\n"; foreach ($users as $user) { $user = (new User())->forceFill($user); @@ -121,7 +122,8 @@ function mail_shift_assign($user, $shift) $message .= $shift['name'] . "\n"; $message .= $shift['title'] . "\n"; $message .= date('Y-m-d H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']) . "\n"; - $message .= $room->name . "\n"; + $message .= $room->name . "\n\n"; + $message .= url('/shifts', ['action' => 'view', 'shift_id' => $shift['SID']]) . "\n"; engelsystem_email_to_user($user, __('Assigned to Shift'), $message, true); }