mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 02:44:29 -04:00
Added preview for email templates
This commit is contained in:
parent
c79d9fe24c
commit
bce4395f82
@ -1318,7 +1318,7 @@ class AccountController extends BaseController
|
||||
];
|
||||
|
||||
// create the email view
|
||||
$view = 'emails.' . $account->getTemplateView() . '_html';
|
||||
$view = 'emails.' . $account->getTemplateView(ENTITY_INVOICE) . '_html';
|
||||
$data = array_merge($data, [
|
||||
'body' => $templateService->processVariables($template, $data),
|
||||
'entityType' => ENTITY_INVOICE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user