Skip to content

A free open source IT asset/license management system

Fixed #6029 - model number not appearing in checkin/checkout emails

snipe134bddf4c781
diff --git a/resources/views/notifications/markdown/checkin-asset.blade.php b/resources/views/notifications/markdown/checkin-asset.blade.php
index 66befd6d0a..3d313f51dc 100644
--- a/resources/views/notifications/markdown/checkin-asset.blade.php
+++ b/resources/views/notifications/markdown/checkin-asset.blade.php
@@ -20,8 +20,8 @@
@if (isset($item->model))
| **{{ trans('general.asset_model') }}** | {{ $item->model->name }} |
@endif
-@if (isset($item->model_no))
-| **{{ trans('general.model_no') }}** | {{ $item->model_no }} |
+@if (isset($item->model->model_number))
+| **{{ trans('general.model_no') }}** | {{ $item->model->model_number }} |
@endif
@if (isset($item->serial))
| **{{ trans('mail.serial') }}** | {{ $item->serial }} |
diff --git a/resources/views/notifications/markdown/checkout-asset.blade.php b/resources/views/notifications/markdown/checkout-asset.blade.php
index 264246efab..e4d3bdc4cf 100644
--- a/resources/views/notifications/markdown/checkout-asset.blade.php
+++ b/resources/views/notifications/markdown/checkout-asset.blade.php
@@ -20,8 +20,8 @@
@if (isset($item->model))
| **{{ trans('general.asset_model') }}** | {{ $item->model->name }} |
@endif
-@if (isset($item->model_no))
-| **{{ trans('general.model_no') }}** | {{ $item->model_no }} |
+@if (isset($item->model->model_number))
+| **{{ trans('general.model_no') }}** | {{ $item->model->model_number }} |
@endif
@if (isset($item->serial))
| **{{ trans('mail.serial') }}** | {{ $item->serial }} |