{"action":"created","issue":{"url":"https://api.github.com/repos/nicklockwood/FXForms/issues/369","labels_url":"https://api.github.com/repos/nicklockwood/FXForms/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/nicklockwood/FXForms/issues/369/comments","events_url":"https://api.github.com/repos/nicklockwood/FXForms/issues/369/events","html_url":"https://github.com/nicklockwood/FXForms/pull/369","id":79530857,"number":369,"title":"reloadData + valueForKeyPath","user":{"login":"Julioacarrettoni","id":714458,"avatar_url":"https://avatars.githubusercontent.com/u/714458?v=3","gravatar_id":"","url":"https://api.github.com/users/Julioacarrettoni","html_url":"https://github.com/Julioacarrettoni","followers_url":"https://api.github.com/users/Julioacarrettoni/followers","following_url":"https://api.github.com/users/Julioacarrettoni/following{/other_user}","gists_url":"https://api.github.com/users/Julioacarrettoni/gists{/gist_id}","starred_url":"https://api.github.com/users/Julioacarrettoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Julioacarrettoni/subscriptions","organizations_url":"https://api.github.com/users/Julioacarrettoni/orgs","repos_url":"https://api.github.com/users/Julioacarrettoni/repos","events_url":"https://api.github.com/users/Julioacarrettoni/events{/privacy}","received_events_url":"https://api.github.com/users/Julioacarrettoni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T17:06:13Z","updated_at":"2015-05-28T13:52:52Z","closed_at":"2015-05-28T13:51:57Z","pull_request":{"url":"https://api.github.com/repos/nicklockwood/FXForms/pulls/369","html_url":"https://github.com/nicklockwood/FXForms/pull/369","diff_url":"https://github.com/nicklockwood/FXForms/pull/369.diff","patch_url":"https://github.com/nicklockwood/FXForms/pull/369.patch"},"body":"This PR fixes 2 things:\r\n1) When assigning a new form to a formController or reassigning the existing one the content doesn't refresh, so a \"reloadData\" was added just after the form is assigned.\r\n\r\n2) When dealing with \"multiple choice\" fields the app was crashing due to the fact that \"valueForKey\" was returning the \"value\" instead of the \"field\" object inside FXFormOption.\r\nUsing \"valueForKeyPath\" and changing the current overriding of \"valueForKey\" to \"valueForUndefinedKey\" seems to fix this issue.\r\nTo reproduce the issue just run the \"BasicExample\" with the current form, go to Register and select Gender."},"comment":{"url":"https://api.github.com/repos/nicklockwood/FXForms/issues/comments/106319291","html_url":"https://github.com/nicklockwood/FXForms/pull/369#issuecomment-106319291","issue_url":"https://api.github.com/repos/nicklockwood/FXForms/issues/369","id":106319291,"user":{"login":"Julioacarrettoni","id":714458,"avatar_url":"https://avatars.githubusercontent.com/u/714458?v=3","gravatar_id":"","url":"https://api.github.com/users/Julioacarrettoni","html_url":"https://github.com/Julioacarrettoni","followers_url":"https://api.github.com/users/Julioacarrettoni/followers","following_url":"https://api.github.com/users/Julioacarrettoni/following{/other_user}","gists_url":"https://api.github.com/users/Julioacarrettoni/gists{/gist_id}","starred_url":"https://api.github.com/users/Julioacarrettoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Julioacarrettoni/subscriptions","organizations_url":"https://api.github.com/users/Julioacarrettoni/orgs","repos_url":"https://api.github.com/users/Julioacarrettoni/repos","events_url":"https://api.github.com/users/Julioacarrettoni/events{/privacy}","received_events_url":"https://api.github.com/users/Julioacarrettoni/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T13:52:52Z","updated_at":"2015-05-28T13:52:52Z","body":"Sorry I pushed to the wrong branch, rewritting history seemed WRONG, and reverting just left everything in a \"dirty\" state so I rather close this PR and start a new fresh one.\r\n\r\nThank you."}}