mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 10:55:38 +00:00
Fixed ambiguous query when selecting by model_id
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user