{"action":"closed","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4601","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4601/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4601/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4601/events","html_url":"https://github.com/silverstripe/silverstripe-framework/issues/4601","id":106124362,"number":4601,"title":"can't save boolean value as false","user":{"login":"sunnysideup","id":167154,"avatar_url":"https://avatars.githubusercontent.com/u/167154?v=3","gravatar_id":"","url":"https://api.github.com/users/sunnysideup","html_url":"https://github.com/sunnysideup","followers_url":"https://api.github.com/users/sunnysideup/followers","following_url":"https://api.github.com/users/sunnysideup/following{/other_user}","gists_url":"https://api.github.com/users/sunnysideup/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnysideup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnysideup/subscriptions","organizations_url":"https://api.github.com/users/sunnysideup/orgs","repos_url":"https://api.github.com/users/sunnysideup/repos","events_url":"https://api.github.com/users/sunnysideup/events{/privacy}","received_events_url":"https://api.github.com/users/sunnysideup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-12T02:56:26Z","updated_at":"2015-09-12T03:26:06Z","closed_at":"2015-09-12T03:26:06Z","body":"This is a common way to save data into a DataObject:\r\n\r\n```\r\n\t\t\t$form->saveInto($this->recordBeingEdited);\r\n\t\t\t$form->sessionMessage(\"Details have been saved\", \"good\");\r\n\t\t\t$this->recordBeingEdited->write();\r\n```\r\n\r\nWorks great, but if you have a checkbox as a form field and the checkbox is being set to false then this does not save. So if the form shows:\r\n\r\n[x] My Boolean Value\r\n\r\nAnd you then untick it the checkbox and press save in the form ... then My Boolean Value is still true.\r\n\r\n"}}