Fix preview in browser and template saving on utf8 columns

[MAILPOET-2969]
This commit is contained in:
Jan Jakeš
2020-06-08 13:26:54 +02:00
committed by Veljko V
parent 2371913473
commit 9f9b21169a

View File

@ -300,7 +300,7 @@ class Newsletters extends APIEndpoint {
}
$newsletter->setBody(
$this->emoji->encodeForUTF8Column(MP_NEWSLETTERS_TABLE, 'body', json_decode($data['body']))
json_decode($this->emoji->encodeForUTF8Column(MP_NEWSLETTERS_TABLE, 'body', $data['body']), true)
);
$this->newslettersRepository->flush();