From 71dbc7abb0ab43d0887449a185236c12ccd591d8 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Thu, 19 Sep 2024 12:23:07 -0700 Subject: [PATCH] refreshed the assetstatus relationship --- app/Notifications/CheckoutAssetNotification.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Notifications/CheckoutAssetNotification.php b/app/Notifications/CheckoutAssetNotification.php index 5ebde7e4f7..b14796fb8c 100644 --- a/app/Notifications/CheckoutAssetNotification.php +++ b/app/Notifications/CheckoutAssetNotification.php @@ -192,10 +192,9 @@ public function toGoogleChat() * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail() - { + { $this->item->load('assetstatus'); $eula = method_exists($this->item, 'getEula') ? $this->item->getEula() : ''; $req_accept = method_exists($this->item, 'requireAcceptance') ? $this->item->requireAcceptance() : 0; - $fields = []; // Check if the item has custom fields associated with it