diff --git a/app/models/Asset.php b/app/models/Asset.php index c447cd593ee9..cfca20b56028 100755 --- a/app/models/Asset.php +++ b/app/models/Asset.php @@ -249,7 +249,7 @@ public function scopeRTD($query) { return $query->whereHas('assetstatus',function($query) { - $query->where('deployable','=',1)->where('pending','=',0)->where('archived','=',0); + $query->where('deployable','=',1)->where('pending','=',0)->where('archived','=',0)->whereNULL('assigned_to'); }); }