mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixes links in Models Actions, and to view the fieldset assigned to that Model. (#9232)
This commit is contained in:
parent
d64b35c348
commit
9ed226a0af
|
@ -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",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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>';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue