A free open source IT asset/license management system
Fixed unaccepted report to account for much older items that might not exist
snipefa1852422359
diff --git a/app/Models/Checkoutable.php b/app/Models/Checkoutable.phpindex f0d193cb33..1a31eac85b 100644--- a/app/Models/Checkoutable.php+++ b/app/Models/Checkoutable.php@@ -46,7 +46,7 @@ class Checkoutable$category = optional($unaccepted_row->license?->category?->present())->nameUrl() ?? '';$company = optional($unaccepted_row->license?->company?->present())?->nameUrl() ?? '';$model = '';- $name = $unaccepted_row->license->present()->nameUrl() ?? '';+ $name = $unaccepted_row->license?->present()->nameUrl() ?? '';}if($unaccepted_row instanceof Consumable){$category = optional($unaccepted_row->category?->present())->nameUrl() ?? '';diff --git a/app/Models/LicenseSeat.php b/app/Models/LicenseSeat.phpindex e4e93e7049..ccc20d9286 100755--- a/app/Models/LicenseSeat.php+++ b/app/Models/LicenseSeat.php@@ -69,7 +69,7 @@ class LicenseSeat extends SnipeModel implements ICompanyableChildprotected function name(): Attribute{return Attribute:: make(- get: fn(mixed $value) => $this->license->name,+ get: fn(mixed $value) => $this->license?->name,);}