Merge pull request #15531 from Godmartinz/status-doesnt-update-in-email

Fixed mail notification field `status label` not updating
This commit is contained in:
snipe 2024-09-19 20:31:02 +01:00 committed by GitHub
commit eef487d61b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,10 +192,9 @@ public function toGoogleChat()
* @return \Illuminate\Notifications\Messages\MailMessage * @return \Illuminate\Notifications\Messages\MailMessage
*/ */
public function toMail() public function toMail()
{ { $this->item->load('assetstatus');
$eula = method_exists($this->item, 'getEula') ? $this->item->getEula() : ''; $eula = method_exists($this->item, 'getEula') ? $this->item->getEula() : '';
$req_accept = method_exists($this->item, 'requireAcceptance') ? $this->item->requireAcceptance() : 0; $req_accept = method_exists($this->item, 'requireAcceptance') ? $this->item->requireAcceptance() : 0;
$fields = []; $fields = [];
// Check if the item has custom fields associated with it // Check if the item has custom fields associated with it