mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixed slack notification error if location is not set on checkin
This commit is contained in:
parent
a9fc7e04e9
commit
188538651a
|
@ -76,7 +76,7 @@ class CheckinAssetNotification extends Notification
|
|||
$fields = [
|
||||
trans('general.administrator') => '<'.$admin->present()->viewUrl().'|'.$admin->present()->fullName().'>',
|
||||
trans('general.status') => $item->assetstatus->name,
|
||||
trans('general.location') => $item->location->name,
|
||||
trans('general.location') => ($item->location) ? $item->location->name : '',
|
||||
];
|
||||
|
||||
return (new SlackMessage)
|
||||
|
|
Loading…
Reference in a new issue