From 0822aa985da818f2125b94f213e8e7dadc1a5f90 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 24 Apr 2025 14:05:44 +0100 Subject: [PATCH] Fixed #16802 - use asset endpoint for assets assigned to locations Signed-off-by: snipe --- resources/views/locations/view.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php index 2f7cb075b..90a8016da 100644 --- a/resources/views/locations/view.blade.php +++ b/resources/views/locations/view.blade.php @@ -263,7 +263,7 @@ data-click-to-select="true" id="assetsListingTable" class="table table-striped snipe-table" - data-url="{{route('api.locations.assigned_assets', ['location' => $location]) }}" + data-url="{{route('api.assets.index', ['assigned_to' => $location->id, 'assigned_type' => 'App\Models\Location']) }}" data-export-options='{ "fileName": "export-locations-{{ str_slug($location->name) }}-assets-{{ date('Y-m-d') }}", "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]