Do not JSON-decode template body when being passed to a newsletter
[MAILPOET-2516]
This commit is contained in:
committed by
Jack Kitterhing
parent
f013d019c6
commit
1d29d3931e
@ -169,8 +169,7 @@ class Newsletters extends APIEndpoint {
|
||||
if (!empty($data['template_id'])) {
|
||||
$template = NewsletterTemplate::whereEqual('id', $data['template_id'])->findOne();
|
||||
if ($template instanceof NewsletterTemplate) {
|
||||
$template = $template->asArray();
|
||||
$data['body'] = $template['body'];
|
||||
$data['body'] = $template->body;
|
||||
}
|
||||
unset($data['template_id']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user