Merge pull request #11077 from snipe/fixes/11075_wrong_var_for_licenses

Fix route for people file deletion
This commit is contained in:
snipe 2022-05-14 08:26:29 -07:00 committed by GitHub
commit cc35a9ab6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -773,7 +773,7 @@
data-sort-name="name" data-sort-name="name"
class="table table-striped snipe-table" class="table table-striped snipe-table"
data-export-options='{ data-export-options='{
"fileName": "export-license-uploads-{{ str_slug($license->name) }}-{{ date('Y-m-d') }}", "fileName": "export-license-uploads-{{ str_slug($user->name) }}-{{ date('Y-m-d') }}",
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","delete","download","icon"] "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","delete","download","icon"]
}'> }'>
@ -825,12 +825,16 @@
@endif @endif
</td> </td>
<td>{{ $file->created_at }}</td> <td>{{ $file->created_at }}</td>
<td> <td>
<a class="btn delete-asset btn-danger btn-sm" href="{{ route('delete/licensefile', [$license->id, $file->id]) }}" data-content="{{ trans('general.delete_confirm', array('item' => $file)) }}" data-title="{{ trans('general.delete') }} {{ $file->filename }}?"> <a class="btn delete-asset btn-danger btn-sm hidden-print" href="{{ route('userfile.destroy', [$user->id, $file->id]) }}" data-content="Are you sure you wish to delete this file?" data-title="Delete {{ $file->filename }}?">
<i class="fas fa-trash icon-white" aria-hidden="true"></i> <i class="fa fa-trash icon-white" aria-hidden="true"></i>
<span class="sr-only">{{ trans('general.delete') }}</span> <span class="sr-only">{{ trans('general.delete') }}</span>
</a> </a>
</td> </td>
</tr> </tr>
@endforeach @endforeach