Skip to content

A free open source IT asset/license management system

Hotfix for FD-50160

snipebe3c8ddd5c4e
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index b742039485..95283cd7be 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -996,10 +996,12 @@
// This is kinda gross, but for right now we're posting to the GUI delete routes
// All of these URLS and storage directories need to be updated to be more consistent :(
- if (row.item.type == 'assetmodels') {
- destination = 'models';
+ if (row.item.type === 'assetmodels') {
+ destination = 'models';
+ } else if (row.item.type === 'assets') {
+ destination = 'hardware';
} else {
- destination = row.item.type;
+ destination = row.item.type;
}
return '<a href="{{ config('app.url') }}/' + destination + '/' + row.item.id + '/showfile/' + row.id + '/delete" '