Skip to content

A free open source IT asset/license management system

fix tests

Godfrey Mfe3d225cfa9f
diff --git a/app/Notifications/AcceptanceAssetAcceptedNotification.php b/app/Notifications/AcceptanceAssetAcceptedNotification.php
index ddbaef2ef5..6c4e2e99e0 100644
--- a/app/Notifications/AcceptanceAssetAcceptedNotification.php
+++ b/app/Notifications/AcceptanceAssetAcceptedNotification.php
@@ -29,7 +29,7 @@ class AcceptanceAssetAcceptedNotification extends Notification
$this->assigned_to = $params['assigned_to'];
$this->note = $params['note'];
$this->company_name = $params['company_name'];
- $this->admin = $params['admin'];
+ $this->admin = $params['admin'] ?? null;
$this->settings = Setting::getSettings();
}
diff --git a/resources/views/notifications/markdown/asset-acceptance.blade.php b/resources/views/notifications/markdown/asset-acceptance.blade.php
index cbce684bd0..85bc110ffa 100644
--- a/resources/views/notifications/markdown/asset-acceptance.blade.php
+++ b/resources/views/notifications/markdown/asset-acceptance.blade.php
@@ -37,7 +37,9 @@
@if (isset($item_serial))
| **{{ trans('mail.serial') }}** | {{ $item_serial }} |
@endif
+@if (isset($admin))
| **{{ trans('general.checked_out').' '.trans('general.by')}}** | {{ $admin }} |
+@endif
@endcomponent
{{ trans('mail.best_regards') }}