Skip to content

Commit c2e12f6

Browse files
authored
Merge pull request #16664 from 36864/patch-1
Fixes #16661: Empty signatures in print page
2 parents 5b1d6db + dfdbc95 commit c2e12f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

resources/views/users/print.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ class="snipe-table table table-striped inventory"
147147
<td>
148148
{{ Helper::getFormattedDateObject($asset->last_checkout, 'datetime', false) }}</td>
149149
<td>
150-
@if (($asset->assetlog->first()) && ($asset->assetlog->first()->accept_signature!=''))
151-
<img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $asset->assetlog->first()->accept_signature }}">
150+
@if (($asset->assetlog->firstWhere('action_type', 'accepted')) && ($asset->assetlog->firstWhere('action_type', 'accepted')->accept_signature!=''))
151+
<img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $asset->assetlog->firstWhere('action_type', 'accepted')->accept_signature }}">
152152
@endif
153153
</td>
154154
</tr>
@@ -174,8 +174,8 @@ class="snipe-table table table-striped inventory"
174174
<td>
175175
{{ Helper::getFormattedDateObject($asset->last_checkout, 'datetime', false) }}</td>
176176
<td>
177-
@if (($asset->assetlog->first()) && ($asset->assetlog->first()->accept_signature!=''))
178-
<img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $asset->assetlog->first()->accept_signature }}">
177+
@if (($asset->assetlog->firstWhere('action_type', 'accepted')) && ($asset->assetlog->firstWhere('action_type', 'accepted')->accept_signature!=''))
178+
<img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $asset->assetlog->firstWhere('action_type', 'accepted')->accept_signature }}">
179179
@endif
180180
</td>
181181
</tr>

0 commit comments

Comments
 (0)