Fixed #4902 - include last name in checkin email

This commit is contained in:
snipe 2018-01-24 10:59:34 -08:00
parent 60c38a0c47
commit 739d3c72b7
2 changed files with 2 additions and 1 deletions

View file

@ -575,6 +575,7 @@ class AssetsController extends Controller
$data['log_id'] = $logaction->id;
$data['first_name'] = get_class($target) == User::class ? $target->first_name : '';
$data['last_name'] = get_class($target) == User::class ? $target->last_name : '';
$data['item_name'] = $asset->present()->name();
$data['checkin_date'] = $logaction->created_at;
$data['item_tag'] = $asset->asset_tag;

View file

@ -1,7 +1,7 @@
@extends('emails/layouts/default')
@section('content')
<p>{{ trans('mail.hello') }} {{ $first_name }},</p>
<p>{{ trans('mail.hello') }} {{ $first_name }} {{ $last_name }},</p>
<p>{{ trans('mail.the_following_item') }}