Merge pull request from snipe/fixes/use_str_slug_for_fileName_export

Fixed model export filename to use str_slug for filename for JS export (like we do elsewhere)
This commit is contained in:
snipe 2022-04-28 21:58:28 +01:00 committed by GitHub
commit 5a8c3444e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@
data-url="{{ route('api.assets.index',['model_id'=> $model->id]) }}"
class="table table-striped snipe-table"
data-export-options='{
"fileName": "export-models-{{ $model->name }}-assets-{{ date('Y-m-d') }}",
"fileName": "export-models-{{ str_slug($model->name) }}-assets-{{ date('Y-m-d') }}",
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
}'>
</table>