A free open source IT asset/license management system
get locale from settings before sending requestable message
Godfrey Mcf7cb8069bb1
diff --git a/app/Notifications/RequestAssetNotification.php b/app/Notifications/RequestAssetNotification.phpindex 0a95ca7413..a454981ed2 100644--- a/app/Notifications/RequestAssetNotification.php+++ b/app/Notifications/RequestAssetNotification.php@@ -102,6 +102,8 @@ class RequestAssetNotification extends Notificationif (($this->item->model) && ($this->item->model->fieldset)) {$fields = $this->item->model->fieldset->fields;}+ $originalLocale = app()->getLocale();+ app()->setLocale($this->settings->locale);$message = (new MailMessage)->markdown('notifications.markdown.asset-requested',[@@ -121,6 +123,8 @@ class RequestAssetNotification extends Notification'X-System-Sender', 'Snipe-IT');});++ app()->setLocale($originalLocale);return $message;}