{"action":"created","issue":{"url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/328","labels_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/328/comments","events_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/328/events","html_url":"https://github.com/restrictcontentpro/restrict-content-pro/issues/328","id":128896109,"number":328,"title":"Validate user input on discount code creation screen","user":{"login":"mindctrl","id":1254870,"avatar_url":"https://avatars.githubusercontent.com/u/1254870?v=3","gravatar_id":"","url":"https://api.github.com/users/mindctrl","html_url":"https://github.com/mindctrl","followers_url":"https://api.github.com/users/mindctrl/followers","following_url":"https://api.github.com/users/mindctrl/following{/other_user}","gists_url":"https://api.github.com/users/mindctrl/gists{/gist_id}","starred_url":"https://api.github.com/users/mindctrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindctrl/subscriptions","organizations_url":"https://api.github.com/users/mindctrl/orgs","repos_url":"https://api.github.com/users/mindctrl/repos","events_url":"https://api.github.com/users/mindctrl/events{/privacy}","received_events_url":"https://api.github.com/users/mindctrl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"mindctrl","id":1254870,"avatar_url":"https://avatars.githubusercontent.com/u/1254870?v=3","gravatar_id":"","url":"https://api.github.com/users/mindctrl","html_url":"https://github.com/mindctrl","followers_url":"https://api.github.com/users/mindctrl/followers","following_url":"https://api.github.com/users/mindctrl/following{/other_user}","gists_url":"https://api.github.com/users/mindctrl/gists{/gist_id}","starred_url":"https://api.github.com/users/mindctrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindctrl/subscriptions","organizations_url":"https://api.github.com/users/mindctrl/orgs","repos_url":"https://api.github.com/users/mindctrl/repos","events_url":"https://api.github.com/users/mindctrl/events{/privacy}","received_events_url":"https://api.github.com/users/mindctrl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/milestones/37","html_url":"https://github.com/restrictcontentpro/restrict-content-pro/milestones/2.4.9","labels_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/milestones/37/labels","id":1518898,"number":37,"title":"2.4.9","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2016-01-19T18:53:46Z","updated_at":"2016-01-29T20:05:49Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-01-26T18:05:54Z","updated_at":"2016-01-29T22:18:11Z","closed_at":null,"body":"When creating a discount code, if you key in the `%` sign in the amount field, you can see an error 400, invalid integer message.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1254870/12589743/47aa420c-c42d-11e5-92a6-f5bb56485f9a.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1254870/12589729/3857e480-c42d-11e5-9370-bab00b32e3a5.png)\r\n\r\nCustomer reported this problem. I replicated locally on one site. Another site allows it through, but shows a double `%% on the list:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1254870/12589795/7e52abdc-c42d-11e5-8283-92910e06e79e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/comments/176995129","html_url":"https://github.com/restrictcontentpro/restrict-content-pro/issues/328#issuecomment-176995129","issue_url":"https://api.github.com/repos/restrictcontentpro/restrict-content-pro/issues/328","id":176995129,"user":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T22:18:11Z","updated_at":"2016-01-29T22:18:11Z","body":"See comments on PR :)"}}