{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/11913","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/11913/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/11913/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/11913/events","html_url":"https://github.com/cakephp/cakephp/issues/11913","id":312296257,"number":11913,"title":"MultiCheckboxWidget.php error when using variable names with an underscore","user":{"login":"RichardPilbery","id":5834254,"avatar_url":"https://avatars0.githubusercontent.com/u/5834254?v=4","gravatar_id":"","url":"https://api.github.com/users/RichardPilbery","html_url":"https://github.com/RichardPilbery","followers_url":"https://api.github.com/users/RichardPilbery/followers","following_url":"https://api.github.com/users/RichardPilbery/following{/other_user}","gists_url":"https://api.github.com/users/RichardPilbery/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardPilbery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardPilbery/subscriptions","organizations_url":"https://api.github.com/users/RichardPilbery/orgs","repos_url":"https://api.github.com/users/RichardPilbery/repos","events_url":"https://api.github.com/users/RichardPilbery/events{/privacy}","received_events_url":"https://api.github.com/users/RichardPilbery/received_events","type":"User","site_admin":false},"labels":[{"id":60504544,"url":"https://api.github.com/repos/cakephp/cakephp/labels/Defect","name":"Defect","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-08T11:07:42Z","updated_at":"2018-04-08T14:53:22Z","closed_at":"2018-04-08T14:53:22Z","author_association":"NONE","body":"This is a (multiple allowed):\r\n\r\n* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* CakePHP Version: 3.5.14\r\n* Platform and Target: PHP 7.1.0, MySQL 5.6.34\r\n\r\n### What you did\r\nCreated a variable to populate a select Form input (checkbox variant). The variable name ($ksf_dimensions) has an underscore in it. Inserted the following code in the view:\r\n\r\n`<?= $this->Form->input('ksf_dimensions',['type'=>'select','multiple'=>'checkbox','label'=>FALSE]); ?>`\r\n\r\n### What happened\r\nReceived the following error instead of a populated select input:\r\n\r\n`Invalid argument supplied for foreach() [CORE/src/View/Widget/MultiCheckboxWidget.php, line 134]`\r\n\r\n### What you expected to happen\r\nCorrect form input generated. \r\n\r\nNote: If the variable is renamed without the underscore, behaviour is as expected."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/379556384","html_url":"https://github.com/cakephp/cakephp/issues/11913#issuecomment-379556384","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/11913","id":379556384,"user":{"login":"RichardPilbery","id":5834254,"avatar_url":"https://avatars0.githubusercontent.com/u/5834254?v=4","gravatar_id":"","url":"https://api.github.com/users/RichardPilbery","html_url":"https://github.com/RichardPilbery","followers_url":"https://api.github.com/users/RichardPilbery/followers","following_url":"https://api.github.com/users/RichardPilbery/following{/other_user}","gists_url":"https://api.github.com/users/RichardPilbery/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardPilbery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardPilbery/subscriptions","organizations_url":"https://api.github.com/users/RichardPilbery/orgs","repos_url":"https://api.github.com/users/RichardPilbery/repos","events_url":"https://api.github.com/users/RichardPilbery/events{/privacy}","received_events_url":"https://api.github.com/users/RichardPilbery/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T14:53:22Z","updated_at":"2018-04-08T14:53:22Z","author_association":"NONE","body":"Gotcha. Thanks for your help."}}
{"actor":{"display_login":"RichardPilbery"}}