Skip to content

A free open source IT asset/license management system

Uses str_slug for filename for JS export (like we do elsewhere)

snipeedab4e137178
diff --git a/resources/views/models/view.blade.php b/resources/views/models/view.blade.php
index 512d1fee92..5d34c82357 100755
--- a/resources/views/models/view.blade.php
+++ b/resources/views/models/view.blade.php
@@ -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>