{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/2487","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/2487/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/2487/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/2487/events","html_url":"https://github.com/aspnet/Mvc/issues/2487","id":72547809,"number":2487,"title":"Value of checkbox not saved to boolean property in ModelState if value didn't change","user":{"login":"wobuzhudao","id":1863756,"avatar_url":"https://avatars.githubusercontent.com/u/1863756?v=3","gravatar_id":"","url":"https://api.github.com/users/wobuzhudao","html_url":"https://github.com/wobuzhudao","followers_url":"https://api.github.com/users/wobuzhudao/followers","following_url":"https://api.github.com/users/wobuzhudao/following{/other_user}","gists_url":"https://api.github.com/users/wobuzhudao/gists{/gist_id}","starred_url":"https://api.github.com/users/wobuzhudao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wobuzhudao/subscriptions","organizations_url":"https://api.github.com/users/wobuzhudao/orgs","repos_url":"https://api.github.com/users/wobuzhudao/repos","events_url":"https://api.github.com/users/wobuzhudao/events{/privacy}","received_events_url":"https://api.github.com/users/wobuzhudao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-01T23:31:04Z","updated_at":"2015-05-01T23:31:04Z","closed_at":null,"body":"When inspecting the ModelState after a POST, a Boolean property will only have the value/raw value corresponding to the state of a checkbox - only if it the state actually changed. Otherwise, it will have \"true,false\" for the value, and a `string[] {\"true\", \"false\"}` for the RawValue.\r\n\r\n![untitled](https://cloud.githubusercontent.com/assets/1863756/7438794/44f4029c-f01f-11e4-9eb6-1c866bc238b1.png)\r\n"}}