Navigation Menu

Skip to content

Commit

Permalink
Include _appCharset in serialisation process
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlinc committed Oct 14, 2015
1 parent 22f960b commit a786e95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mailer/Email.php
Expand Up @@ -1906,7 +1906,7 @@ public function jsonSerialize()
$properties = [
'_to', '_from', '_sender', '_replyTo', '_cc', '_bcc', '_subject',
'_returnPath', '_readReceipt', '_emailFormat', '_emailPattern', '_domain',
'_attachments', '_messageId', '_headers', 'viewVars', 'charset', 'headerCharset'
'_attachments', '_messageId', '_headers', '_appCharset', 'viewVars', 'charset', 'headerCharset'
];

$array = ['viewConfig' => $this->viewBuilder()->jsonSerialize()];
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/Mailer/EmailTest.php
Expand Up @@ -2701,6 +2701,7 @@ public function testJsonSerialize()
'_emailFormat' => 'text',
'_messageId' => '<uuid@server.com>',
'_domain' => 'foo.bar',
'_appCharset' => 'UTF-8',
'charset' => 'utf-8',
'headerCharset' => 'utf-8',
'viewConfig' => [
Expand Down

0 comments on commit a786e95

Please sign in to comment.