add nullsafe operator to location manager

This commit is contained in:
Godfrey M
2025-10-21 14:06:08 -07:00
parent 63c5177b37
commit 4ab5d97e86
+1 -1
View File
@@ -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