Bug fix: notification emails have the wrong entity type
This commit is contained in:
parent
0ce9e426d9
commit
5f709f76a8
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@ class UserMailer extends Mailer
|
|||
return;
|
||||
}
|
||||
|
||||
$entityType = $notificationType == 'approved' ? ENTITY_QUOTE : ENTITY_INVOICE;
|
||||
$view = "{$entityType}_{$notificationType}";
|
||||
$entityType = $invoice->getEntityType();
|
||||
$view = ($notificationType == 'approved' ? ENTITY_QUOTE : ENTITY_INVOICE) . "_{$notificationType}";
|
||||
$account = $user->account;
|
||||
$client = $invoice->client;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue