A free open source IT asset/license management system
Fixed #5617 - incorrect url to fieldset editing
snipe9e0544e7355b
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex c8ce11de74..c2cb62d851 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -155,7 +155,14 @@return '<nobr><a href="{{ url('/') }}/' + destination + '/' + value.id + '" data-tooltip="true" title="'+ status_meta[value.status_meta] + '"> <i class="fa ' + icon_style + ' text-' + text_color + '"></i> ' + value.name + ' ' + text_help + ' </a> </nobr>';} else if ((value) && (value.name)) {- return '<nobr><a href="{{ url('/') }}/' + destination + '/' + value.id + '"> ' + value.name + '</a></span>';++ // Add some overrides for any funny urls we have+ var dest = destination;+ if (destination=='fieldsets') {+ var dest = 'fields/fieldsets';+ }++ return '<nobr><a href="{{ url('/') }}/' + dest + '/' + value.id + '"> ' + value.name + '</a></span>';}};}@@ -166,10 +173,13 @@var actions = '<nobr>';+ // Add some overrides for any funny urls we havevar dest = destination;+if (destination=='groups') {var dest = 'admin/groups';}+if (destination=='maintenances') {var dest = 'hardware/maintenances';}