mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed #4902 - include last name in checkin email
This commit is contained in:
parent
60c38a0c47
commit
739d3c72b7
|
@ -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;
|
||||
|
|
|
@ -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') }}
|
||||
|
|
Loading…
Reference in a new issue