mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:54:41 -04:00
Bug fix: notification emails have the wrong entity type
This commit is contained in:
parent
0ce9e426d9
commit
5f709f76a8
@ -40,8 +40,8 @@ class UserMailer extends Mailer
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$entityType = $notificationType == 'approved' ? ENTITY_QUOTE : ENTITY_INVOICE;
|
$entityType = $invoice->getEntityType();
|
||||||
$view = "{$entityType}_{$notificationType}";
|
$view = ($notificationType == 'approved' ? ENTITY_QUOTE : ENTITY_INVOICE) . "_{$notificationType}";
|
||||||
$account = $user->account;
|
$account = $user->account;
|
||||||
$client = $invoice->client;
|
$client = $invoice->client;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user