{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/2751","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/2751/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/2751/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/2751/events","html_url":"https://github.com/mautic/mautic/issues/2751","id":182956139,"number":2751,"title":"Email Builder Shows Js code on \"Apply\"","user":{"login":"trops","id":1709556,"avatar_url":"https://avatars.githubusercontent.com/u/1709556?v=3","gravatar_id":"","url":"https://api.github.com/users/trops","html_url":"https://github.com/trops","followers_url":"https://api.github.com/users/trops/followers","following_url":"https://api.github.com/users/trops/following{/other_user}","gists_url":"https://api.github.com/users/trops/gists{/gist_id}","starred_url":"https://api.github.com/users/trops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trops/subscriptions","organizations_url":"https://api.github.com/users/trops/orgs","repos_url":"https://api.github.com/users/trops/repos","events_url":"https://api.github.com/users/trops/events{/privacy}","received_events_url":"https://api.github.com/users/trops/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mautic/mautic/labels/Pending%20Feedback","name":"Pending Feedback","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-14T03:35:55Z","updated_at":"2016-10-16T00:42:03Z","closed_at":null,"body":"What type of report is this:\r\n\r\n| Q  | A\r\n| ---| ---\r\n| Bug report? | Y\r\n| Feature request? | \r\n| Enhancement? | \r\n\r\n## Description:\r\n\r\nWhen creating a new email from template, and clicking \"Apply\" a large chunk of javascript code gets placed at the top of the template replacing an image I have in the header.\r\n\r\n## If a bug:\r\n\r\n| Q   | A\r\n| --- | ---\r\n| Mautic version | 2.2\r\n| PHP version | 7\r\n\r\n### Steps to reproduce:\r\n1. Create New Email (Segment OR Template Email)\r\n2. Choose a Theme Template (click select)\r\n3. Name the Email\r\n4. Click Apply\r\n\r\nThe image I have at the top gets replaced by a large chunk of javascript as seen below:\r\n\r\n// (function(){var g=this,h=function(b,d){var a=b.split(\".\"),c=g;a[0]in c||!c.execScript||c.execScript(\"var \"+a[0]);for(var e;a.length&&(e=a.shift());)a.length||void 0===d?c[e]?c=c[e]:c=c[e]={}:c[e]=d};var l=function(b){var d=b.length;if(0=d.offsetHeight)a=!1;else{c=d.getBoundingClientRect();var f=document.body;a=c.top+(\"pageYOffset\"in window?window.pageYOffset:(document.documentElement||f.parentNode||f).scrollTop);c=c.left+(\"pageXOffset\"in window?window.pageXOffset:(document.documentElement||f.parentNode||f).scrollLeft);f=a.toString()+\",\"+c;b.b.hasOwnProperty(f)?a=!1:(b.b[f]=!0,a=a=b.e.height&&c=b.e.width)}a&&(b.a.push(e),b.d[e]=!0)};p.prototype.checkImageForCriticality=function(b){b.getBoundingClientRect&&q(this,b)};h(\"pagespeed.CriticalImages.checkImageForCriticality\",function(b){n.checkImageForCriticality(b)});h(\"pagespeed.CriticalImages.checkCriticalImages\",function(){r(n)});var r=function(b){b.b={};for(var d=[\"IMG\",\"INUT\"],a=[],c=0;c\r\n \r\n### Log errors: \r\n\r\nmautic.NOTICE: PHP Notice: Undefined offset: 0 - in file /opt/bitnami/apache2/htdocs/mautic/app/bundles/EmailBundle/Views/Email/form.html.php - at line 15 [] []\r\n[2016-10-13 23:28:23] mautic.CRITICAL: Uncaught PHP Exception Symfony\\Component\\Debug\\Exception\\FatalThrowableError: \"Type error: Argument 1 passed to Symfony\\Bundle\\FrameworkBundle\\Templating\\Helper\\FormHelper::widget() must be an instance of Symfony\\Component\\Form\\FormView, null given, called in /opt/bitnami/apache2/htdocs/mautic/app/bundles/EmailBundle/Views/Email/form.html.php on line 214\" at /opt/bitnami/apache2/htdocs/mautic/vendor/symfony/framework-bundle/Templating/Helper/FormHelper.php line 162 {\"exception\":\"[object] (Symfony\\\\Component\\\\Debug\\\\Exception\\\\FatalThrowableError(code: 0): Type error: Argument 1 passed to Symfony\\\\Bundle\\\\FrameworkBundle\\\\Templating\\\\Helper\\\\FormHelper::widget() must be an instance of Symfony\\\\Component\\\\Form\\\\FormView, null given, called in /opt/bitnami/apache2/htdocs/mautic/app/bundles/EmailBundle/Views/Email/form.html.php on line 214 at /opt/bitnami/apache2/htdocs/mautic/vendor/symfony/framework-bundle/Templating/Helper/FormHelper.php:162)\"} []\r\n[2016-10-13 23:28:23] mautic.ERROR: Notice: Trying to get property of non-object - in file /opt/bitnami/apache2/htdocs/mautic/app/bundles/EmailBundle/Views/Email/form.html.php - at line 15 [] []\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/254020019","html_url":"https://github.com/mautic/mautic/issues/2751#issuecomment-254020019","issue_url":"https://api.github.com/repos/mautic/mautic/issues/2751","id":254020019,"user":{"login":"trops","id":1709556,"avatar_url":"https://avatars.githubusercontent.com/u/1709556?v=3","gravatar_id":"","url":"https://api.github.com/users/trops","html_url":"https://github.com/trops","followers_url":"https://api.github.com/users/trops/followers","following_url":"https://api.github.com/users/trops/following{/other_user}","gists_url":"https://api.github.com/users/trops/gists{/gist_id}","starred_url":"https://api.github.com/users/trops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trops/subscriptions","organizations_url":"https://api.github.com/users/trops/orgs","repos_url":"https://api.github.com/users/trops/repos","events_url":"https://api.github.com/users/trops/events{/privacy}","received_events_url":"https://api.github.com/users/trops/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T00:42:03Z","updated_at":"2016-10-16T00:42:03Z","body":"No I didn't use cloudflare. I created my own theme. Ill test using the basic theme and see if it has the same behavior. I can send you the theme as well that I used."}}
{"actor":{"display_login":"trops"}}