mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Fixed ambiguous query when selecting by model_id
This commit is contained in:
parent
65353fa422
commit
487fd17ce3
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue