Merge pull request #16168 from Godmartinz/print_all_assigned_location_null_check

Added ternary check that asset has `asset status` before checking archived
This commit is contained in:
snipe 2025-02-06 10:01:10 +00:00 committed by GitHub
commit 46dd83c34e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,7 +126,7 @@
@foreach ($assets as $asset)
@php
if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->archived == 1){
if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus?->archived == 1){
continue;
}
@endphp