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); } /**