Merge pull request #14276 from snipe/bug/sc-24828

Fixed ambiguous query on supplier_id in maintenances
This commit is contained in:
snipe 2024-02-15 09:52:23 +00:00 committed by GitHub
commit 6f7dce53cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')) {