{"action":"created","comment":{"url":"https://api.github.com/repos/shopware/shopware/pulls/comments/78524765","id":78524765,"diff_hunk":"@@ -1434,11 +1440,15 @@ private function getMailForOrder($orderId, $statusId)\n                 'data' => array(\n                     'error' => false,\n                     'content' => $mail->getPlainBodyText(),\n+                    'contentHtml' => $mail->getPlainBody(),\n                     'subject' => $mail->getPlainSubject(),\n                     'to' => implode(', ', $mail->getTo()),\n                     'fromMail' => $mail->getFrom(),\n                     'fromName' => $mail->getFromName(),\n                     'sent' => false,\n+                    'isHtml' => (bool) Shopware()->Db()->fetchOne('SELECT `ishtml` FROM s_core_config_mails WHERE `name` = ?', [","path":"engine/Shopware/Controllers/Backend/Order.php","position":25,"original_position":25,"commit_id":"ceaae5b2117acb16e8508939fcf616791741e854","original_commit_id":"ceaae5b2117acb16e8508939fcf616791741e854","user":{"login":"janbuecker","id":736986,"avatar_url":"https://avatars.githubusercontent.com/u/736986?v=3","gravatar_id":"","url":"https://api.github.com/users/janbuecker","html_url":"https://github.com/janbuecker","followers_url":"https://api.github.com/users/janbuecker/followers","following_url":"https://api.github.com/users/janbuecker/following{/other_user}","gists_url":"https://api.github.com/users/janbuecker/gists{/gist_id}","starred_url":"https://api.github.com/users/janbuecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janbuecker/subscriptions","organizations_url":"https://api.github.com/users/janbuecker/orgs","repos_url":"https://api.github.com/users/janbuecker/repos","events_url":"https://api.github.com/users/janbuecker/events{/privacy}","received_events_url":"https://api.github.com/users/janbuecker/received_events","type":"User","site_admin":false},"body":"I think you can replace the SQL statement with something like `!empty($mail->getBodyHtml())` since the `bodyHtml` property of the mail object only gets filled, if the template's `isHtml` is `true`.","created_at":"2016-09-13T09:25:22Z","updated_at":"2016-09-13T09:25:22Z","html_url":"https://github.com/shopware/shopware/pull/712#discussion_r78524765","pull_request_url":"https://api.github.com/repos/shopware/shopware/pulls/712","_links":{"self":{"href":"https://api.github.com/repos/shopware/shopware/pulls/comments/78524765"},"html":{"href":"https://github.com/shopware/shopware/pull/712#discussion_r78524765"},"pull_request":{"href":"https://api.github.com/repos/shopware/shopware/pulls/712"}}},"pull_request":{"url":"https://api.github.com/repos/shopware/shopware/pulls/712","id":84180743,"html_url":"https://github.com/shopware/shopware/pull/712","diff_url":"https://github.com/shopware/shopware/pull/712.diff","patch_url":"https://github.com/shopware/shopware/pull/712.patch","issue_url":"https://api.github.com/repos/shopware/shopware/issues/712","number":712,"state":"open","locked":false,"title":"[Papercut][SW-15897] make possible to use html mails in status mails","user":{"login":"shyim","id":6224096,"avatar_url":"https://avatars.githubusercontent.com/u/6224096?v=3","gravatar_id":"","url":"https://api.github.com/users/shyim","html_url":"https://github.com/shyim","followers_url":"https://api.github.com/users/shyim/followers","following_url":"https://api.github.com/users/shyim/following{/other_user}","gists_url":"https://api.github.com/users/shyim/gists{/gist_id}","starred_url":"https://api.github.com/users/shyim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyim/subscriptions","organizations_url":"https://api.github.com/users/shyim/orgs","repos_url":"https://api.github.com/users/shyim/repos","events_url":"https://api.github.com/users/shyim/events{/privacy}","received_events_url":"https://api.github.com/users/shyim/received_events","type":"User","site_admin":false},"body":"## Description\r\nPlease describe your pull request:\r\nIt makes possible to use html mails in status mails\r\n\r\n\r\n| Questions        | Answers\r\n| ---------------- | -------------------------------------------------------\r\n| BC breaks?       | no\r\n| Tests pass?      | yes\r\n| Related tickets? | [SW-15897](https://issues.shopware.com/#/issues/SW-15897)\r\n| How to test?     | Write to a status mail a html content and change a order to that status\r\n","created_at":"2016-09-06T19:23:32Z","updated_at":"2016-09-13T09:25:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"540e935c68a309886cc8ebdc137ce873877f6ce1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/shopware/shopware/pulls/712/commits","review_comments_url":"https://api.github.com/repos/shopware/shopware/pulls/712/comments","review_comment_url":"https://api.github.com/repos/shopware/shopware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shopware/shopware/issues/712/comments","statuses_url":"https://api.github.com/repos/shopware/shopware/statuses/ceaae5b2117acb16e8508939fcf616791741e854","head":{"label":"shyim:html_status_mail","ref":"html_status_mail","sha":"ceaae5b2117acb16e8508939fcf616791741e854","user":{"login":"shyim","id":6224096,"avatar_url":"https://avatars.githubusercontent.com/u/6224096?v=3","gravatar_id":"","url":"https://api.github.com/users/shyim","html_url":"https://github.com/shyim","followers_url":"https://api.github.com/users/shyim/followers","following_url":"https://api.github.com/users/shyim/following{/other_user}","gists_url":"https://api.github.com/users/shyim/gists{/gist_id}","starred_url":"https://api.github.com/users/shyim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyim/subscriptions","organizations_url":"https://api.github.com/users/shyim/orgs","repos_url":"https://api.github.com/users/shyim/repos","events_url":"https://api.github.com/users/shyim/events{/privacy}","received_events_url":"https://api.github.com/users/shyim/received_events","type":"User","site_admin":false},"repo":{"id":37932612,"name":"shopware","full_name":"shyim/shopware","owner":{"login":"shyim","id":6224096,"avatar_url":"https://avatars.githubusercontent.com/u/6224096?v=3","gravatar_id":"","url":"https://api.github.com/users/shyim","html_url":"https://github.com/shyim","followers_url":"https://api.github.com/users/shyim/followers","following_url":"https://api.github.com/users/shyim/following{/other_user}","gists_url":"https://api.github.com/users/shyim/gists{/gist_id}","starred_url":"https://api.github.com/users/shyim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyim/subscriptions","organizations_url":"https://api.github.com/users/shyim/orgs","repos_url":"https://api.github.com/users/shyim/repos","events_url":"https://api.github.com/users/shyim/events{/privacy}","received_events_url":"https://api.github.com/users/shyim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shyim/shopware","description":"Shopware Repository","fork":true,"url":"https://api.github.com/repos/shyim/shopware","forks_url":"https://api.github.com/repos/shyim/shopware/forks","keys_url":"https://api.github.com/repos/shyim/shopware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shyim/shopware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shyim/shopware/teams","hooks_url":"https://api.github.com/repos/shyim/shopware/hooks","issue_events_url":"https://api.github.com/repos/shyim/shopware/issues/events{/number}","events_url":"https://api.github.com/repos/shyim/shopware/events","assignees_url":"https://api.github.com/repos/shyim/shopware/assignees{/user}","branches_url":"https://api.github.com/repos/shyim/shopware/branches{/branch}","tags_url":"https://api.github.com/repos/shyim/shopware/tags","blobs_url":"https://api.github.com/repos/shyim/shopware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shyim/shopware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shyim/shopware/git/refs{/sha}","trees_url":"https://api.github.com/repos/shyim/shopware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shyim/shopware/statuses/{sha}","languages_url":"https://api.github.com/repos/shyim/shopware/languages","stargazers_url":"https://api.github.com/repos/shyim/shopware/stargazers","contributors_url":"https://api.github.com/repos/shyim/shopware/contributors","subscribers_url":"https://api.github.com/repos/shyim/shopware/subscribers","subscription_url":"https://api.github.com/repos/shyim/shopware/subscription","commits_url":"https://api.github.com/repos/shyim/shopware/commits{/sha}","git_commits_url":"https://api.github.com/repos/shyim/shopware/git/commits{/sha}","comments_url":"https://api.github.com/repos/shyim/shopware/comments{/number}","issue_comment_url":"https://api.github.com/repos/shyim/shopware/issues/comments{/number}","contents_url":"https://api.github.com/repos/shyim/shopware/contents/{+path}","compare_url":"https://api.github.com/repos/shyim/shopware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shyim/shopware/merges","archive_url":"https://api.github.com/repos/shyim/shopware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shyim/shopware/downloads","issues_url":"https://api.github.com/repos/shyim/shopware/issues{/number}","pulls_url":"https://api.github.com/repos/shyim/shopware/pulls{/number}","milestones_url":"https://api.github.com/repos/shyim/shopware/milestones{/number}","notifications_url":"https://api.github.com/repos/shyim/shopware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shyim/shopware/labels{/name}","releases_url":"https://api.github.com/repos/shyim/shopware/releases{/id}","deployments_url":"https://api.github.com/repos/shyim/shopware/deployments","created_at":"2015-06-23T17:04:49Z","updated_at":"2016-07-26T06:33:19Z","pushed_at":"2016-09-07T17:50:59Z","git_url":"git://github.com/shyim/shopware.git","ssh_url":"git@github.com:shyim/shopware.git","clone_url":"https://github.com/shyim/shopware.git","svn_url":"https://github.com/shyim/shopware","homepage":"http://www.shopware.com","size":157892,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"5.0"}},"base":{"label":"shopware:99-papercuts","ref":"99-papercuts","sha":"87157fdc699b178f2965b94bd2e78b60d4d565fb","user":{"login":"shopware","id":612628,"avatar_url":"https://avatars.githubusercontent.com/u/612628?v=3","gravatar_id":"","url":"https://api.github.com/users/shopware","html_url":"https://github.com/shopware","followers_url":"https://api.github.com/users/shopware/followers","following_url":"https://api.github.com/users/shopware/following{/other_user}","gists_url":"https://api.github.com/users/shopware/gists{/gist_id}","starred_url":"https://api.github.com/users/shopware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopware/subscriptions","organizations_url":"https://api.github.com/users/shopware/orgs","repos_url":"https://api.github.com/users/shopware/repos","events_url":"https://api.github.com/users/shopware/events{/privacy}","received_events_url":"https://api.github.com/users/shopware/received_events","type":"Organization","site_admin":false},"repo":{"id":5682970,"name":"shopware","full_name":"shopware/shopware","owner":{"login":"shopware","id":612628,"avatar_url":"https://avatars.githubusercontent.com/u/612628?v=3","gravatar_id":"","url":"https://api.github.com/users/shopware","html_url":"https://github.com/shopware","followers_url":"https://api.github.com/users/shopware/followers","following_url":"https://api.github.com/users/shopware/following{/other_user}","gists_url":"https://api.github.com/users/shopware/gists{/gist_id}","starred_url":"https://api.github.com/users/shopware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopware/subscriptions","organizations_url":"https://api.github.com/users/shopware/orgs","repos_url":"https://api.github.com/users/shopware/repos","events_url":"https://api.github.com/users/shopware/events{/privacy}","received_events_url":"https://api.github.com/users/shopware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shopware/shopware","description":"Shopware Repository","fork":false,"url":"https://api.github.com/repos/shopware/shopware","forks_url":"https://api.github.com/repos/shopware/shopware/forks","keys_url":"https://api.github.com/repos/shopware/shopware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shopware/shopware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shopware/shopware/teams","hooks_url":"https://api.github.com/repos/shopware/shopware/hooks","issue_events_url":"https://api.github.com/repos/shopware/shopware/issues/events{/number}","events_url":"https://api.github.com/repos/shopware/shopware/events","assignees_url":"https://api.github.com/repos/shopware/shopware/assignees{/user}","branches_url":"https://api.github.com/repos/shopware/shopware/branches{/branch}","tags_url":"https://api.github.com/repos/shopware/shopware/tags","blobs_url":"https://api.github.com/repos/shopware/shopware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shopware/shopware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shopware/shopware/git/refs{/sha}","trees_url":"https://api.github.com/repos/shopware/shopware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shopware/shopware/statuses/{sha}","languages_url":"https://api.github.com/repos/shopware/shopware/languages","stargazers_url":"https://api.github.com/repos/shopware/shopware/stargazers","contributors_url":"https://api.github.com/repos/shopware/shopware/contributors","subscribers_url":"https://api.github.com/repos/shopware/shopware/subscribers","subscription_url":"https://api.github.com/repos/shopware/shopware/subscription","commits_url":"https://api.github.com/repos/shopware/shopware/commits{/sha}","git_commits_url":"https://api.github.com/repos/shopware/shopware/git/commits{/sha}","comments_url":"https://api.github.com/repos/shopware/shopware/comments{/number}","issue_comment_url":"https://api.github.com/repos/shopware/shopware/issues/comments{/number}","contents_url":"https://api.github.com/repos/shopware/shopware/contents/{+path}","compare_url":"https://api.github.com/repos/shopware/shopware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shopware/shopware/merges","archive_url":"https://api.github.com/repos/shopware/shopware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shopware/shopware/downloads","issues_url":"https://api.github.com/repos/shopware/shopware/issues{/number}","pulls_url":"https://api.github.com/repos/shopware/shopware/pulls{/number}","milestones_url":"https://api.github.com/repos/shopware/shopware/milestones{/number}","notifications_url":"https://api.github.com/repos/shopware/shopware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shopware/shopware/labels{/name}","releases_url":"https://api.github.com/repos/shopware/shopware/releases{/id}","deployments_url":"https://api.github.com/repos/shopware/shopware/deployments","created_at":"2012-09-05T05:32:50Z","updated_at":"2016-09-13T08:58:59Z","pushed_at":"2016-09-13T08:46:08Z","git_url":"git://github.com/shopware/shopware.git","ssh_url":"git@github.com:shopware/shopware.git","clone_url":"https://github.com/shopware/shopware.git","svn_url":"https://github.com/shopware/shopware","homepage":"http://www.shopware.com","size":173036,"stargazers_count":513,"watchers_count":513,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":351,"mirror_url":null,"open_issues_count":115,"forks":351,"open_issues":115,"watchers":513,"default_branch":"5.2"}},"_links":{"self":{"href":"https://api.github.com/repos/shopware/shopware/pulls/712"},"html":{"href":"https://github.com/shopware/shopware/pull/712"},"issue":{"href":"https://api.github.com/repos/shopware/shopware/issues/712"},"comments":{"href":"https://api.github.com/repos/shopware/shopware/issues/712/comments"},"review_comments":{"href":"https://api.github.com/repos/shopware/shopware/pulls/712/comments"},"review_comment":{"href":"https://api.github.com/repos/shopware/shopware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shopware/shopware/pulls/712/commits"},"statuses":{"href":"https://api.github.com/repos/shopware/shopware/statuses/ceaae5b2117acb16e8508939fcf616791741e854"}}}}
{"actor":{"display_login":"janbuecker"}}