Merge pull request #12767 from snipe/fixes/bulk_restore

Quick fix for bulk restore menu
This commit is contained in:
snipe 2023-03-30 14:48:43 -07:00 committed by GitHub
commit ed8535a197
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@
</span>
</label>
<select name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="min-width: 350px;">
@if($status ?? '' == 'Deleted')
@if(($status) && ($status == 'Deleted'))
@can('delete', \App\Models\Asset::class)
<option value="restore">{{trans('button.restore')}}</option>
@endcan