mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
adds check that asset has asset status before checking archived
This commit is contained in:
parent
d906f3cf62
commit
24bb679305
|
@ -143,7 +143,7 @@ class CheckinAssetNotification extends Notification
|
|||
KeyValue::create(
|
||||
trans('mail.checked_into') ?: '',
|
||||
$item->location->name ? $item->location->name : '',
|
||||
trans('admin/hardware/form.status').": ".$item->assetstatus->name,
|
||||
trans('admin/hardware/form.status').": ".$item->assetstatus?->name,
|
||||
)
|
||||
->onClick(route('hardware.show', $item->id))
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue