mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Add a condition in the view 'print all assigned' from locations where it skips the assets in relation of if they're archived and that option is marked in the settings
This commit is contained in:
parent
a5409215fc
commit
2b64af0d34
|
@ -122,11 +122,15 @@
|
|||
</tr>
|
||||
</thead>
|
||||
@php
|
||||
$counter = 1;
|
||||
$counter = 1;;
|
||||
@endphp
|
||||
|
||||
@foreach ($assets as $asset)
|
||||
|
||||
@php
|
||||
if($snipeSettings->show_archived_in_list != 1 && $asset->assetstatus->name === 'Archived'){
|
||||
continue;
|
||||
}
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ $asset->asset_tag }}</td>
|
||||
|
|
Loading…
Reference in a new issue