Merge pull request #18080 from Godmartinz/add-null-safe-operator-to-manager

Fixes admin alerts when a location doesnt have a manager
This commit is contained in:
snipe
2025-10-22 11:56:59 +01:00
committed by GitHub
+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