Skip to content

Commit

Permalink
Fixed snipe#5617 - incorrect url to fieldset editing
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed May 29, 2018
1 parent 3993c6a commit 9e0544e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion resources/views/partials/bootstrap-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,14 @@ function genericColumnObjLinkFormatter(destination) {
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>';
}
};
}
Expand All @@ -166,10 +173,13 @@ function genericActionsFormatter(destination) {
var actions = '<nobr>';
// Add some overrides for any funny urls we have
var dest = destination;
if (destination=='groups') {
var dest = 'admin/groups';
}
if (destination=='maintenances') {
var dest = 'hardware/maintenances';
}
Expand Down

0 comments on commit 9e0544e

Please sign in to comment.