Fixes links in Models Actions, and to view the fieldset assigned to that Model. (#9232)

This commit is contained in:
Ivan Nieto Vivanco 2021-03-01 15:08:29 -06:00 committed by GitHub
parent d64b35c348
commit 9ed226a0af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -124,7 +124,7 @@ class AssetModelPresenter extends Presenter
"sortable" => false, "sortable" => false,
"switchable" => false, "switchable" => false,
"title" => trans('table.actions'), "title" => trans('table.actions'),
"formatter" => "licensesActionsFormatter", "formatter" => "modelsActionsFormatter",
]; ];

View file

@ -160,11 +160,12 @@
// Add some overrides for any funny urls we have // Add some overrides for any funny urls we have
var dest = destination; var dest = destination;
var dpolymorphicItemFormatterest = '';
if (destination=='fieldsets') { if (destination=='fieldsets') {
var dpolymorphicItemFormatterest = 'fields/fieldsets'; var dpolymorphicItemFormatterest = 'fields/';
} }
return '<nobr><a href="{{ url('/') }}/' + dest + '/' + value.id + '"> ' + value.name + '</a></span>'; return '<nobr><a href="{{ url('/') }}/' + dpolymorphicItemFormatterest + dest + '/' + value.id + '"> ' + value.name + '</a></span>';
} }
}; };
} }