From 113b762ec775ac189f991f635336bdd1c7a7eb7c Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 4 Sep 2025 16:55:44 +0100 Subject: [PATCH] Fix for null location in locations print Signed-off-by: snipe --- resources/views/locations/print.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ {{ (($asset->model) && ($asset->model->manufacturer)) ? $asset->model->manufacturer->name : '' }} {{ ($asset->model) ? $asset->model->name : '' }} {{ $asset->serial }} - {{ $asset->location->name }} + {{ ($asset->location->name) ? $asset->location->name : '' }} {{ \App\Helpers\Helper::getFormattedDateObject( $asset->last_checkout, 'datetime', false) }} {{ \App\Helpers\Helper::getFormattedDateObject( $asset->expected_checkin, 'datetime', false) }}