Fixed ambiguous query when selecting by model_id

This commit is contained in:
snipe 2017-11-08 20:03:26 -08:00
parent 65353fa422
commit 487fd17ce3

View file

@ -711,7 +711,7 @@ class Asset extends Depreciable
*/ */
public function scopeInModelList($query, array $modelIdListing) public function scopeInModelList($query, array $modelIdListing)
{ {
return $query->whereIn('model_id', $modelIdListing); return $query->whereIn('assets.model_id', $modelIdListing);
} }
/** /**