A free open source IT asset/license management system
Fixed weird whereNULL
snipe91a9e410df4a
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 631cf4a289..d02513aa8d 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -756,7 +756,7 @@ class Asset extends Depreciablepublic function scopeRTD($query){- return $query->whereNULL('assets.assigned_to')+ return $query->whereNull('assets.assigned_to')->whereHas('assetstatus', function ($query) {$query->where('deployable', '=', 1)->where('pending', '=', 0)