{"action":"closed","number":4869,"pull_request":{"url":"https://api.github.com/repos/bolt/bolt/pulls/4869","id":59984815,"html_url":"https://github.com/bolt/bolt/pull/4869","diff_url":"https://github.com/bolt/bolt/pull/4869.diff","patch_url":"https://github.com/bolt/bolt/pull/4869.patch","issue_url":"https://api.github.com/repos/bolt/bolt/issues/4869","number":4869,"state":"closed","locked":false,"title":"Add a default value for checkboxes","user":{"login":"rossriley","id":5082,"avatar_url":"https://avatars.githubusercontent.com/u/5082?v=3","gravatar_id":"","url":"https://api.github.com/users/rossriley","html_url":"https://github.com/rossriley","followers_url":"https://api.github.com/users/rossriley/followers","following_url":"https://api.github.com/users/rossriley/following{/other_user}","gists_url":"https://api.github.com/users/rossriley/gists{/gist_id}","starred_url":"https://api.github.com/users/rossriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossriley/subscriptions","organizations_url":"https://api.github.com/users/rossriley/orgs","repos_url":"https://api.github.com/users/rossriley/repos","events_url":"https://api.github.com/users/rossriley/events{/privacy}","received_events_url":"https://api.github.com/users/rossriley/received_events","type":"User","site_admin":false},"body":"This fixes an error that shows up in newer versions of MySQL which are stricter about types.\r\n\r\nBolt sets a checkbox to a TINYINT field and expects a value of `0` or `1` internally but without a default value set then most browsers will send a value of `on`\r\n\r\nWith stricter modes for the database this always results in a `0` value being set.\r\n\r\n\r\n","created_at":"2016-02-19T18:02:56Z","updated_at":"2016-02-24T20:28:43Z","closed_at":"2016-02-24T20:28:43Z","merged_at":"2016-02-24T20:28:43Z","merge_commit_sha":"942f2738c9280a3cb9aba7a62fb2da8dd7156c35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bolt/bolt/pulls/4869/commits","review_comments_url":"https://api.github.com/repos/bolt/bolt/pulls/4869/comments","review_comment_url":"https://api.github.com/repos/bolt/bolt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/4869/comments","statuses_url":"https://api.github.com/repos/bolt/bolt/statuses/f675af825433d50496554e57cf295431187fd718","head":{"label":"rossriley:fix/incorrect-checkbox-values","ref":"fix/incorrect-checkbox-values","sha":"f675af825433d50496554e57cf295431187fd718","user":{"login":"rossriley","id":5082,"avatar_url":"https://avatars.githubusercontent.com/u/5082?v=3","gravatar_id":"","url":"https://api.github.com/users/rossriley","html_url":"https://github.com/rossriley","followers_url":"https://api.github.com/users/rossriley/followers","following_url":"https://api.github.com/users/rossriley/following{/other_user}","gists_url":"https://api.github.com/users/rossriley/gists{/gist_id}","starred_url":"https://api.github.com/users/rossriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossriley/subscriptions","organizations_url":"https://api.github.com/users/rossriley/orgs","repos_url":"https://api.github.com/users/rossriley/repos","events_url":"https://api.github.com/users/rossriley/events{/privacy}","received_events_url":"https://api.github.com/users/rossriley/received_events","type":"User","site_admin":false},"repo":{"id":19492823,"name":"bolt","full_name":"rossriley/bolt","owner":{"login":"rossriley","id":5082,"avatar_url":"https://avatars.githubusercontent.com/u/5082?v=3","gravatar_id":"","url":"https://api.github.com/users/rossriley","html_url":"https://github.com/rossriley","followers_url":"https://api.github.com/users/rossriley/followers","following_url":"https://api.github.com/users/rossriley/following{/other_user}","gists_url":"https://api.github.com/users/rossriley/gists{/gist_id}","starred_url":"https://api.github.com/users/rossriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossriley/subscriptions","organizations_url":"https://api.github.com/users/rossriley/orgs","repos_url":"https://api.github.com/users/rossriley/repos","events_url":"https://api.github.com/users/rossriley/events{/privacy}","received_events_url":"https://api.github.com/users/rossriley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rossriley/bolt","description":"Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.","fork":true,"url":"https://api.github.com/repos/rossriley/bolt","forks_url":"https://api.github.com/repos/rossriley/bolt/forks","keys_url":"https://api.github.com/repos/rossriley/bolt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rossriley/bolt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rossriley/bolt/teams","hooks_url":"https://api.github.com/repos/rossriley/bolt/hooks","issue_events_url":"https://api.github.com/repos/rossriley/bolt/issues/events{/number}","events_url":"https://api.github.com/repos/rossriley/bolt/events","assignees_url":"https://api.github.com/repos/rossriley/bolt/assignees{/user}","branches_url":"https://api.github.com/repos/rossriley/bolt/branches{/branch}","tags_url":"https://api.github.com/repos/rossriley/bolt/tags","blobs_url":"https://api.github.com/repos/rossriley/bolt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rossriley/bolt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rossriley/bolt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rossriley/bolt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rossriley/bolt/statuses/{sha}","languages_url":"https://api.github.com/repos/rossriley/bolt/languages","stargazers_url":"https://api.github.com/repos/rossriley/bolt/stargazers","contributors_url":"https://api.github.com/repos/rossriley/bolt/contributors","subscribers_url":"https://api.github.com/repos/rossriley/bolt/subscribers","subscription_url":"https://api.github.com/repos/rossriley/bolt/subscription","commits_url":"https://api.github.com/repos/rossriley/bolt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rossriley/bolt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rossriley/bolt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rossriley/bolt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rossriley/bolt/contents/{+path}","compare_url":"https://api.github.com/repos/rossriley/bolt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rossriley/bolt/merges","archive_url":"https://api.github.com/repos/rossriley/bolt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rossriley/bolt/downloads","issues_url":"https://api.github.com/repos/rossriley/bolt/issues{/number}","pulls_url":"https://api.github.com/repos/rossriley/bolt/pulls{/number}","milestones_url":"https://api.github.com/repos/rossriley/bolt/milestones{/number}","notifications_url":"https://api.github.com/repos/rossriley/bolt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rossriley/bolt/labels{/name}","releases_url":"https://api.github.com/repos/rossriley/bolt/releases{/id}","deployments_url":"https://api.github.com/repos/rossriley/bolt/deployments","created_at":"2014-05-06T12:12:06Z","updated_at":"2016-01-28T09:32:21Z","pushed_at":"2016-02-19T17:58:09Z","git_url":"git://github.com/rossriley/bolt.git","ssh_url":"git@github.com:rossriley/bolt.git","clone_url":"https://github.com/rossriley/bolt.git","svn_url":"https://github.com/rossriley/bolt","homepage":"","size":55872,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"bolt:release/2.2","ref":"release/2.2","sha":"0614836fa8573e612879f710f16b78b10197a470","user":{"login":"bolt","id":3869752,"avatar_url":"https://avatars.githubusercontent.com/u/3869752?v=3","gravatar_id":"","url":"https://api.github.com/users/bolt","html_url":"https://github.com/bolt","followers_url":"https://api.github.com/users/bolt/followers","following_url":"https://api.github.com/users/bolt/following{/other_user}","gists_url":"https://api.github.com/users/bolt/gists{/gist_id}","starred_url":"https://api.github.com/users/bolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolt/subscriptions","organizations_url":"https://api.github.com/users/bolt/orgs","repos_url":"https://api.github.com/users/bolt/repos","events_url":"https://api.github.com/users/bolt/events{/privacy}","received_events_url":"https://api.github.com/users/bolt/received_events","type":"Organization","site_admin":false},"repo":{"id":4665416,"name":"bolt","full_name":"bolt/bolt","owner":{"login":"bolt","id":3869752,"avatar_url":"https://avatars.githubusercontent.com/u/3869752?v=3","gravatar_id":"","url":"https://api.github.com/users/bolt","html_url":"https://github.com/bolt","followers_url":"https://api.github.com/users/bolt/followers","following_url":"https://api.github.com/users/bolt/following{/other_user}","gists_url":"https://api.github.com/users/bolt/gists{/gist_id}","starred_url":"https://api.github.com/users/bolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolt/subscriptions","organizations_url":"https://api.github.com/users/bolt/orgs","repos_url":"https://api.github.com/users/bolt/repos","events_url":"https://api.github.com/users/bolt/events{/privacy}","received_events_url":"https://api.github.com/users/bolt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bolt/bolt","description":"Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.","fork":false,"url":"https://api.github.com/repos/bolt/bolt","forks_url":"https://api.github.com/repos/bolt/bolt/forks","keys_url":"https://api.github.com/repos/bolt/bolt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bolt/bolt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bolt/bolt/teams","hooks_url":"https://api.github.com/repos/bolt/bolt/hooks","issue_events_url":"https://api.github.com/repos/bolt/bolt/issues/events{/number}","events_url":"https://api.github.com/repos/bolt/bolt/events","assignees_url":"https://api.github.com/repos/bolt/bolt/assignees{/user}","branches_url":"https://api.github.com/repos/bolt/bolt/branches{/branch}","tags_url":"https://api.github.com/repos/bolt/bolt/tags","blobs_url":"https://api.github.com/repos/bolt/bolt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bolt/bolt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bolt/bolt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bolt/bolt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bolt/bolt/statuses/{sha}","languages_url":"https://api.github.com/repos/bolt/bolt/languages","stargazers_url":"https://api.github.com/repos/bolt/bolt/stargazers","contributors_url":"https://api.github.com/repos/bolt/bolt/contributors","subscribers_url":"https://api.github.com/repos/bolt/bolt/subscribers","subscription_url":"https://api.github.com/repos/bolt/bolt/subscription","commits_url":"https://api.github.com/repos/bolt/bolt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bolt/bolt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bolt/bolt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bolt/bolt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bolt/bolt/contents/{+path}","compare_url":"https://api.github.com/repos/bolt/bolt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bolt/bolt/merges","archive_url":"https://api.github.com/repos/bolt/bolt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bolt/bolt/downloads","issues_url":"https://api.github.com/repos/bolt/bolt/issues{/number}","pulls_url":"https://api.github.com/repos/bolt/bolt/pulls{/number}","milestones_url":"https://api.github.com/repos/bolt/bolt/milestones{/number}","notifications_url":"https://api.github.com/repos/bolt/bolt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bolt/bolt/labels{/name}","releases_url":"https://api.github.com/repos/bolt/bolt/releases{/id}","deployments_url":"https://api.github.com/repos/bolt/bolt/deployments","created_at":"2012-06-14T16:07:54Z","updated_at":"2016-02-24T13:35:11Z","pushed_at":"2016-02-24T20:28:43Z","git_url":"git://github.com/bolt/bolt.git","ssh_url":"git@github.com:bolt/bolt.git","clone_url":"https://github.com/bolt/bolt.git","svn_url":"https://github.com/bolt/bolt","homepage":"","size":60266,"stargazers_count":2614,"watchers_count":2614,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":604,"mirror_url":null,"open_issues_count":134,"forks":604,"open_issues":134,"watchers":2614,"default_branch":"release/2.2"}},"_links":{"self":{"href":"https://api.github.com/repos/bolt/bolt/pulls/4869"},"html":{"href":"https://github.com/bolt/bolt/pull/4869"},"issue":{"href":"https://api.github.com/repos/bolt/bolt/issues/4869"},"comments":{"href":"https://api.github.com/repos/bolt/bolt/issues/4869/comments"},"review_comments":{"href":"https://api.github.com/repos/bolt/bolt/pulls/4869/comments"},"review_comment":{"href":"https://api.github.com/repos/bolt/bolt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bolt/bolt/pulls/4869/commits"},"statuses":{"href":"https://api.github.com/repos/bolt/bolt/statuses/f675af825433d50496554e57cf295431187fd718"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"GawainLynch","id":1427081,"avatar_url":"https://avatars.githubusercontent.com/u/1427081?v=3","gravatar_id":"","url":"https://api.github.com/users/GawainLynch","html_url":"https://github.com/GawainLynch","followers_url":"https://api.github.com/users/GawainLynch/followers","following_url":"https://api.github.com/users/GawainLynch/following{/other_user}","gists_url":"https://api.github.com/users/GawainLynch/gists{/gist_id}","starred_url":"https://api.github.com/users/GawainLynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GawainLynch/subscriptions","organizations_url":"https://api.github.com/users/GawainLynch/orgs","repos_url":"https://api.github.com/users/GawainLynch/repos","events_url":"https://api.github.com/users/GawainLynch/events{/privacy}","received_events_url":"https://api.github.com/users/GawainLynch/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}