mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 14:15:53 +00:00
add nullsafe operator to location manager
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user