A free open source IT asset/license management system
Make sure there is a valid status label associated withthe asset when checking if deployable
snipec9e6a75ea886
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 15510e8588..230f4c7db8 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -128,7 +128,11 @@ class Asset extends Depreciablepublic function availableForCheckout(){- if ((empty($this->assigned_to)) && (empty($this->deleted_at)) && ($this->assetstatus->deployable == 1)) {+ if (+ (empty($this->assigned_to)) &&+ (empty($this->deleted_at)) &&+ (($this->assetstatus) && ($this->assetstatus->deployable == 1)))+ {return true;}return false;