{"action":"opened","issue":{"url":"https://api.github.com/repos/vanilla/addons/issues/664","repository_url":"https://api.github.com/repos/vanilla/addons","labels_url":"https://api.github.com/repos/vanilla/addons/issues/664/labels{/name}","comments_url":"https://api.github.com/repos/vanilla/addons/issues/664/comments","events_url":"https://api.github.com/repos/vanilla/addons/issues/664/events","html_url":"https://github.com/vanilla/addons/issues/664","id":376175687,"node_id":"MDU6SXNzdWUzNzYxNzU2ODc=","number":664,"title":"QnA: JavaScript in configuration screen isn","user":{"login":"R-J","id":3996187,"node_id":"MDQ6VXNlcjM5OTYxODc=","avatar_url":"https://avatars1.githubusercontent.com/u/3996187?v=4","gravatar_id":"","url":"https://api.github.com/users/R-J","html_url":"https://github.com/R-J","followers_url":"https://api.github.com/users/R-J/followers","following_url":"https://api.github.com/users/R-J/following{/other_user}","gists_url":"https://api.github.com/users/R-J/gists{/gist_id}","starred_url":"https://api.github.com/users/R-J/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/R-J/subscriptions","organizations_url":"https://api.github.com/users/R-J/orgs","repos_url":"https://api.github.com/users/R-J/repos","events_url":"https://api.github.com/users/R-J/events{/privacy}","received_events_url":"https://api.github.com/users/R-J/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-31T21:55:03Z","updated_at":"2018-10-31T21:55:03Z","closed_at":null,"author_association":"MEMBER","body":"In the configuration view is a logical error.  The input boxes for \"QnA.Points.Answer\" and \"QnA.Points.AcceptedAnswer\" are only displayed if  `$pointsAwardEnabled = c('QnA.Points.Enabled');` == true:\r\n\r\n~~~\r\n    <li class=\"form-group js-point-awards-inputs\"<?php echo $pointsAwardEnabled ? null : ' style=\"display:none;\"'?>><?php\r\n        echo $this->Form->labelWrap(t('Point(s) per answer (Only the user\\'s first answer to a question will award points)'), 'QnA.Points.Answer');\r\n        echo $this->Form->textBoxWrap('QnA.Points.Answer', $textBoxAttributes);\r\n    ?></li>\r\n    <li class=\"form-group js-point-awards-inputs\"<?php echo $pointsAwardEnabled ? null : ' style=\"display:none;\"'?>><?php\r\n        echo $this->Form->labelWrap(t('Points per accepted answer'), 'QnA.Points.AcceptedAnswer');\r\n        echo $this->Form->textBoxWrap('QnA.Points.AcceptedAnswer', $textBoxAttributes);\r\n    ?></li>\r\n~~~\r\n\r\nWhen you open the config screen and toggle the \"Enable point awards\" on, the "}}
{"actor":{"display_login":"R-J"}}