A free open source IT asset/license management system
Fixed ambiguous query when selecting by model_id
snipe487fd17ce3ca
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 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);}/**