mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Only format ecpected checkin date if one exists
This commit is contained in:
parent
012afe99e2
commit
ee0814716a
|
@ -93,7 +93,7 @@ class CheckoutNotification extends Notification
|
||||||
'first_name' => $target->present()->fullName(),
|
'first_name' => $target->present()->fullName(),
|
||||||
'item_name' => $item->present()->name(),
|
'item_name' => $item->present()->name(),
|
||||||
'checkout_date' => $item->last_checkout,
|
'checkout_date' => $item->last_checkout,
|
||||||
'expected_checkin' => $item->expected_checkin->format('Y-m-d'),
|
'expected_checkin' => ($item->expected_checkin) ? $item->expected_checkin->format('Y-m-d') : '',
|
||||||
'item_tag' => $item->asset_tag,
|
'item_tag' => $item->asset_tag,
|
||||||
'note' => $this->params['note'],
|
'note' => $this->params['note'],
|
||||||
'item_serial' => $item->serial,
|
'item_serial' => $item->serial,
|
||||||
|
|
Loading…
Reference in a new issue