From 4ab5d97e86715d5c26ffbfcaa01c049e6800daed Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Tue, 21 Oct 2025 14:06:08 -0700 Subject: [PATCH] add nullsafe operator to location manager --- app/Mail/CheckoutAssetMail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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