3
0
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:
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)
{
return $query->whereIn('model_id', $modelIdListing);
return $query->whereIn('assets.model_id', $modelIdListing);
}
/**