mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Fixes #2713 - error displayed with license checked out to asset
This commit is contained in:
parent
31898d0f85
commit
219ef23126
|
@ -61,7 +61,8 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>Seat {{ $count }} </td>
|
<td>Seat {{ $count }} </td>
|
||||||
<td>
|
<td>
|
||||||
@if (($licensedto->assigned_to) && ($licensedto->deleted_at == NULL))
|
|
||||||
|
@if (($licensedto->user) && ($licensedto->deleted_at == NULL))
|
||||||
@can('users.view')
|
@can('users.view')
|
||||||
<a href="{{ route('view/user', $licensedto->assigned_to) }}">
|
<a href="{{ route('view/user', $licensedto->assigned_to) }}">
|
||||||
{{ $licensedto->user->fullName() }}
|
{{ $licensedto->user->fullName() }}
|
||||||
|
@ -70,9 +71,9 @@
|
||||||
{{ $licensedto->user->fullName() }}
|
{{ $licensedto->user->fullName() }}
|
||||||
@endcan
|
@endcan
|
||||||
|
|
||||||
@elseif (($licensedto->assigned_to) && ($licensedto->deleted_at != NULL))
|
@elseif (($licensedto->user) && ($licensedto->deleted_at != NULL))
|
||||||
<del>{{ $licensedto->user->fullName() }}</del>
|
<del>{{ $licensedto->user->fullName() }}</del>
|
||||||
@elseif ($licensedto->asset_id)
|
@elseif ($licensedto->asset)
|
||||||
@if ($licensedto->asset->assigned_to != 0)
|
@if ($licensedto->asset->assigned_to != 0)
|
||||||
@can('users.view')
|
@can('users.view')
|
||||||
<a href="{{ route('view/user', $licensedto->asset->assigned_to) }}">
|
<a href="{{ route('view/user', $licensedto->asset->assigned_to) }}">
|
||||||
|
@ -377,9 +378,17 @@
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
@if (($log->target) && ($log->target->id!='0'))
|
@if (($log->target) && ($log->target->id!='0'))
|
||||||
<a href="{{ route('view/user', $log->target_id) }}">
|
|
||||||
{{ $log->userlog->fullName() }}
|
@if ($log->target_type == 'App\Models\User')
|
||||||
</a>
|
<a href="{{ route('view/user', $log->target_id) }}">
|
||||||
|
{{ $log->userlog->fullName() }}
|
||||||
|
</a>
|
||||||
|
@elseif ($log->target_type == 'App\Models\Asset')
|
||||||
|
<a href="{{ route('view/hardware', $log->target_id) }}">
|
||||||
|
{{ $log->userlog->showAssetName() }}
|
||||||
|
</a>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
@elseif ($log->action_type=='uploaded')
|
@elseif ($log->action_type=='uploaded')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue