Added preview for email templates

This commit is contained in:
Hillel Coren 2016-05-05 17:51:52 +03:00
parent c79d9fe24c
commit bce4395f82

View File

@ -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,