Added preview for email templates
This commit is contained in:
parent
c79d9fe24c
commit
bce4395f82
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue