{"action":"closed","issue":{"url":"https://api.github.com/repos/crocodic-studio/crudbooster/issues/49","repository_url":"https://api.github.com/repos/crocodic-studio/crudbooster","labels_url":"https://api.github.com/repos/crocodic-studio/crudbooster/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/crocodic-studio/crudbooster/issues/49/comments","events_url":"https://api.github.com/repos/crocodic-studio/crudbooster/issues/49/events","html_url":"https://github.com/crocodic-studio/crudbooster/issues/49","id":180205384,"number":49,"title":"How to make a checkbox correctly?","user":{"login":"FastHarryson","id":22436781,"avatar_url":"https://avatars.githubusercontent.com/u/22436781?v=3","gravatar_id":"","url":"https://api.github.com/users/FastHarryson","html_url":"https://github.com/FastHarryson","followers_url":"https://api.github.com/users/FastHarryson/followers","following_url":"https://api.github.com/users/FastHarryson/following{/other_user}","gists_url":"https://api.github.com/users/FastHarryson/gists{/gist_id}","starred_url":"https://api.github.com/users/FastHarryson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FastHarryson/subscriptions","organizations_url":"https://api.github.com/users/FastHarryson/orgs","repos_url":"https://api.github.com/users/FastHarryson/repos","events_url":"https://api.github.com/users/FastHarryson/events{/privacy}","received_events_url":"https://api.github.com/users/FastHarryson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-30T02:17:28Z","updated_at":"2016-10-01T16:36:41Z","closed_at":"2016-10-01T16:36:41Z","body":"Hi!\r\nI'm trying to create simple todo module.\r\nI create a table migration with a finish status field:\r\n`$table->boolean('complete')->default(false); // in DB it have a type tinyint(1)`\r\nThen in controller I trying to add a checkbox not checked by default:\r\n`$this->form[] = array(\"label\"=>\"Done\",\"name\"=>\"complete\",\"type\"=>\"checkbox\",\"required\"=>FALSE,\"dataenum\"=>array(0,1),\"default_value\"=>0);`\r\n\r\nBut it gives me 2 checkbox labled 0 and 1. I was playing with different variants, but without success. If I set array(0) it shows only one checkbox, but no value is setted. Please, direct me to the right way!"}}
{"actor":{"display_login":"fherryfherry"}}