mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
if not location add default location
This commit is contained in:
parent
f270672a3d
commit
49021d277c
|
@ -102,7 +102,7 @@ class CheckinAssetNotification extends Notification
|
|||
->title("Asset Checked in")
|
||||
->addStartGroupToSection('activityText')
|
||||
->fact(htmlspecialchars_decode($item->present()->name), '', 'activityText')
|
||||
->fact('Checked into ', $item->location->name ? $item->location->name : '')
|
||||
->fact('Checked into ', $item->location->name ? $item->location->name : $item->defaultLoc()->name)
|
||||
->fact(trans('mail.Asset_Checkin_Notification')." by ", $admin->present()->fullName())
|
||||
->fact('Asset Status', $item->assetstatus->name)
|
||||
->fact('Notes', $note ?: 'No notes');
|
||||
|
|
|
@ -138,7 +138,7 @@ class CheckoutAssetNotification extends Notification
|
|||
->title("Asset Checked Out")
|
||||
->addStartGroupToSection('activityText')
|
||||
->fact(htmlspecialchars_decode($item->present()->name), '', 'activityText')
|
||||
->fact('Checked out from ', $item->location ? $item->location->name : '')
|
||||
->fact('Checked out from ', $item->location ? $item->location->name : $item->assetLoc()->name)
|
||||
->fact(trans('mail.Asset_Checkout_Notification') . " by ", $admin->present()->fullName())
|
||||
->fact('Asset Status', $item->assetstatus->name)
|
||||
->fact('Notes', $note ?: 'No notes');
|
||||
|
|
Loading…
Reference in a new issue