{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/8345","repository_url":"https://api.github.com/repos/contao/core","labels_url":"https://api.github.com/repos/contao/core/issues/8345/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/8345/comments","events_url":"https://api.github.com/repos/contao/core/issues/8345/events","html_url":"https://github.com/contao/core/issues/8345","id":156311013,"number":8345,"title":"isValidOption & \"special chars\"","user":{"login":"vmulot","id":25209,"avatar_url":"https://avatars.githubusercontent.com/u/25209?v=3","gravatar_id":"","url":"https://api.github.com/users/vmulot","html_url":"https://github.com/vmulot","followers_url":"https://api.github.com/users/vmulot/followers","following_url":"https://api.github.com/users/vmulot/following{/other_user}","gists_url":"https://api.github.com/users/vmulot/gists{/gist_id}","starred_url":"https://api.github.com/users/vmulot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmulot/subscriptions","organizations_url":"https://api.github.com/users/vmulot/orgs","repos_url":"https://api.github.com/users/vmulot/repos","events_url":"https://api.github.com/users/vmulot/events{/privacy}","received_events_url":"https://api.github.com/users/vmulot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-23T16:26:17Z","updated_at":"2016-06-02T14:50:25Z","closed_at":null,"body":"Hi,\r\ni have a pb with the Widget isValidOption for select and checkboxes.\r\ni have a form generated with form generator with some fields, text, select, checkboxes.\r\nValues of select and checkboxes have some \"special chars\" like ( or ).\r\n\r\ni did a custom module, and for some reasons i had to do a load callback for a select field.\r\nthe callback get the options (and values) from the previous form.\r\n\r\nat this time, it's working.\r\nbut\r\nif i need to change the value in my custom module form, i can't save the form\r\n> Invalid input: Activ. menages: employeurs, produc. biens & serv. (usage propre)\r\ni did some quick and dirty debug, and noticed something in the Widget isValidOption method  :\r\n\r\n- i dumped $strInput and $v['value'] to compare both.\r\nthe first one seems to have ( and ) encode and not the second one, so it does not match.\r\ni tried to add a rgxp alnum and a decodeEntities but it is still not working.\r\n\r\nDid i miss something, or is it a real issue ? (i'd like to keep my original values with ( ) or some others chars).\r\nThanks for help\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/223315836","html_url":"https://github.com/contao/core/issues/8345#issuecomment-223315836","issue_url":"https://api.github.com/repos/contao/core/issues/8345","id":223315836,"user":{"login":"vmulot","id":25209,"avatar_url":"https://avatars.githubusercontent.com/u/25209?v=3","gravatar_id":"","url":"https://api.github.com/users/vmulot","html_url":"https://github.com/vmulot","followers_url":"https://api.github.com/users/vmulot/followers","following_url":"https://api.github.com/users/vmulot/following{/other_user}","gists_url":"https://api.github.com/users/vmulot/gists{/gist_id}","starred_url":"https://api.github.com/users/vmulot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmulot/subscriptions","organizations_url":"https://api.github.com/users/vmulot/orgs","repos_url":"https://api.github.com/users/vmulot/repos","events_url":"https://api.github.com/users/vmulot/events{/privacy}","received_events_url":"https://api.github.com/users/vmulot/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T14:50:25Z","updated_at":"2016-06-02T14:50:25Z","body":"Hi, did someone manage to reproduce this pb ?"}}
{"actor":{"display_login":"vmulot"}}