From 9426861522993e4a4456b598f53a35f5aa6f01d6 Mon Sep 17 00:00:00 2001 From: EwelinaLasowy Date: Fri, 18 Feb 2022 12:52:30 +0100 Subject: [PATCH] #41 - fix --- .../Notifications/VacationRequestApprovedNotification.php | 2 +- .../Notifications/VacationRequestCancelledNotification.php | 2 +- .../Notifications/VacationRequestRejectedNotification.php | 2 +- resources/lang/pl.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Domain/Notifications/VacationRequestApprovedNotification.php b/app/Domain/Notifications/VacationRequestApprovedNotification.php index 74c8f65..7552365 100644 --- a/app/Domain/Notifications/VacationRequestApprovedNotification.php +++ b/app/Domain/Notifications/VacationRequestApprovedNotification.php @@ -43,7 +43,7 @@ class VacationRequestApprovedNotification extends Notification protected function buildMailMessage(string $url): MailMessage { - $user = $this->vacationRequest->user->first_name; + $user = $this->user->first_name; $title = $this->vacationRequest->name; $type = $this->vacationRequest->type->label(); $from = $this->vacationRequest->from->format("d.m.Y"); diff --git a/app/Domain/Notifications/VacationRequestCancelledNotification.php b/app/Domain/Notifications/VacationRequestCancelledNotification.php index fc23c66..e3111f2 100644 --- a/app/Domain/Notifications/VacationRequestCancelledNotification.php +++ b/app/Domain/Notifications/VacationRequestCancelledNotification.php @@ -43,7 +43,7 @@ class VacationRequestCancelledNotification extends Notification protected function buildMailMessage(string $url): MailMessage { - $user = $this->vacationRequest->user->first_name; + $user = $this->user->first_name; $title = $this->vacationRequest->name; $type = $this->vacationRequest->type->label(); $from = $this->vacationRequest->from->format("d.m.Y"); diff --git a/app/Domain/Notifications/VacationRequestRejectedNotification.php b/app/Domain/Notifications/VacationRequestRejectedNotification.php index f9777b1..7ac10ff 100644 --- a/app/Domain/Notifications/VacationRequestRejectedNotification.php +++ b/app/Domain/Notifications/VacationRequestRejectedNotification.php @@ -43,7 +43,7 @@ class VacationRequestRejectedNotification extends Notification protected function buildMailMessage(string $url): MailMessage { - $user = $this->vacationRequest->user->first_name; + $user = $this->user->first_name; $title = $this->vacationRequest->name; $type = $this->vacationRequest->type->label(); $from = $this->vacationRequest->from->format("d.m.Y"); diff --git a/resources/lang/pl.json b/resources/lang/pl.json index 929b2d0..2366fe2 100644 --- a/resources/lang/pl.json +++ b/resources/lang/pl.json @@ -61,7 +61,7 @@ "The vacation request :title from user: :requester is waiting for your approval.": "Wniosek urlopowy :title od użytkownika :requester czeka na Twoją akceptację.", "Vacation request :title has been approved": "Wniosek urlopowy :title został zatwierdzony", "The vacation request :title for user :requester has been approved.": "Wniosek urlopowy :title od użytkownika :requester został zatwierdzony.", - "Vacation request :title has been cancelled": "WNiosek urlopowy :title został anulowany", + "Vacation request :title has been cancelled": "Wniosek urlopowy :title został anulowany", "The vacation request :title for user :requester has been cancelled.": "Wniosek urlopowy :title od użytkownika :requester został anulowany.", "Vacation request :title has been rejected": "Wniosek urlopowy :title został odrzucony", "The vacation request :title for user :requester has been rejected.": "Wniosek urlopowy :title od użytkownika :requester został odrzucony."