Skip to content

Commit

Permalink
Fix RTD query to not display checked out asset
Browse files Browse the repository at this point in the history
  • Loading branch information
madd15 committed Feb 11, 2015
1 parent c06a4d4 commit 31f4ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}

Expand Down

0 comments on commit 31f4ba8

Please sign in to comment.