From 487fd17ce3ca50dfcfa57580ca40d6e877e57a27 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 8 Nov 2017 20:03:26 -0800 Subject: [PATCH] Fixed ambiguous query when selecting by model_id --- app/Models/Asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index fa92f8fc96..1dafcfd450 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -711,7 +711,7 @@ class Asset extends Depreciable */ public function scopeInModelList($query, array $modelIdListing) { - return $query->whereIn('model_id', $modelIdListing); + return $query->whereIn('assets.model_id', $modelIdListing); } /**