From 13d2af2155889e6f39d9f6fdf8902d011f27f31a Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 15 Feb 2024 09:51:14 +0000 Subject: [PATCH] Fixed ambiguous query on supplier_id in maintenances Signed-off-by: snipe --- app/Http/Controllers/Api/AssetMaintenancesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/AssetMaintenancesController.php b/app/Http/Controllers/Api/AssetMaintenancesController.php index a26935cc59..4b47c323c2 100644 --- a/app/Http/Controllers/Api/AssetMaintenancesController.php +++ b/app/Http/Controllers/Api/AssetMaintenancesController.php @@ -48,7 +48,7 @@ class AssetMaintenancesController extends Controller } if ($request->filled('supplier_id')) { - $maintenances->where('supplier_id', '=', $request->input('supplier_id')); + $maintenances->where('asset_maintenances.supplier_id', '=', $request->input('supplier_id')); } if ($request->filled('asset_maintenance_type')) {