Skip to content

A free open source IT asset/license management system

add nullsafe operator to location manager

Godfrey M4ab5d97e8671
diff --git a/app/Mail/CheckoutAssetMail.php b/app/Mail/CheckoutAssetMail.php
index 324c1c8f29..ae855b7226 100644
--- a/app/Mail/CheckoutAssetMail.php
+++ b/app/Mail/CheckoutAssetMail.php
@@ -87,7 +87,7 @@ class CheckoutAssetMail extends Mailable
$name = $this->target->assignedto?->display_name;
}
else if($this->target instanceof Location){
- $name = $this->target->manager->name;
+ $name = $this->target->manager?->name;
}
// Check if the item has custom fields associated with it