From 31f4ba88f655e1386f2f4f0efae84399f7aa6d52 Mon Sep 17 00:00:00 2001 From: madd15 Date: Wed, 11 Feb 2015 11:49:28 +1030 Subject: [PATCH] Fix RTD query to not display checked out asset --- app/models/Asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }); }