mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-05 03:44:37 -04:00
Skip post-table processing for emails
This commit is contained in:
parent
f6c9a3a6a3
commit
38504e2d53
@ -63,9 +63,9 @@ class TemplateEmail extends Mailable
|
|||||||
DesignHelpers::parseMarkdownToHtml($this->build_email->getBody())
|
DesignHelpers::parseMarkdownToHtml($this->build_email->getBody())
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->build_email->setBody(
|
// $this->build_email->setBody(
|
||||||
TemplateEngine::wrapElementsIntoTables('<div id="content-wrapper"></div>', $this->build_email->getBody(), $settings)
|
// TemplateEngine::wrapElementsIntoTables('<div id="content-wrapper"></div>', $this->build_email->getBody(), $settings)
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
$company = $this->client->company;
|
$company = $this->client->company;
|
||||||
|
@ -212,7 +212,7 @@ class TemplateEngine
|
|||||||
} else {
|
} else {
|
||||||
$wrapper = '';
|
$wrapper = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($email_style == 'plain') {
|
elseif ($email_style == 'plain') {
|
||||||
$wrapper = view($this->getTemplatePath($email_style), $data)->render();
|
$wrapper = view($this->getTemplatePath($email_style), $data)->render();
|
||||||
$injection = '';
|
$injection = '';
|
||||||
@ -226,7 +226,7 @@ class TemplateEngine
|
|||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'subject' => $this->subject,
|
'subject' => $this->subject,
|
||||||
'body' => $email_style == 'custom' ? $this->body : self::wrapElementsIntoTables(strtr('<div id="content-wrapper"></div>', ['$body' => '']), $this->body, $this->entity_obj->client->getMergedSettings()),
|
'body' => $this->body,
|
||||||
'wrapper' => $wrapper,
|
'wrapper' => $wrapper,
|
||||||
'raw_body' => $this->raw_body,
|
'raw_body' => $this->raw_body,
|
||||||
'raw_subject' => $this->raw_subject
|
'raw_subject' => $this->raw_subject
|
||||||
|
Loading…
x
Reference in New Issue
Block a user