From ae104293dac0786addd60cabf2dde24caac89a5d Mon Sep 17 00:00:00 2001 From: madd15 Date: Thu, 19 Feb 2015 08:20:27 +1030 Subject: [PATCH] #539 - Allow checked out asset in requestable --- 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 7b4c6b398f..1ec4518685 100755 --- a/app/models/Asset.php +++ b/app/models/Asset.php @@ -307,7 +307,7 @@ class Asset extends Depreciable public function scopeRequestableAssets($query) { - return $query->where('requestable','=',1)->whereNULL('assigned_to')->whereHas('assetstatus',function($query) + return $query->where('requestable','=',1)->whereHas('assetstatus',function($query) { $query->where('deployable','=',1)->where('pending','=',0)->where('archived','=',0); });