Skip to content

A free open source IT asset/license management system

Fix for null location in locations print

snipe113b762ec775
diff --git a/resources/views/locations/print.blade.php b/resources/views/locations/print.blade.php
index 0f7f3b8c45..1214ea0864 100644
--- a/resources/views/locations/print.blade.php
+++ b/resources/views/locations/print.blade.php
@@ -142,7 +142,7 @@
<td>{{ (($asset->model) && ($asset->model->manufacturer)) ? $asset->model->manufacturer->name : '' }}</td>
<td>{{ ($asset->model) ? $asset->model->name : '' }}</td>
<td>{{ $asset->serial }}</td>
- <td>{{ $asset->location->name }}</td>
+ <td>{{ ($asset->location->name) ? $asset->location->name : '' }}</td>
<td>{{ \App\Helpers\Helper::getFormattedDateObject( $asset->last_checkout, 'datetime', false) }}</td>
<td>{{ \App\Helpers\Helper::getFormattedDateObject( $asset->expected_checkin, 'datetime', false) }}</td>
</tr>