{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zendframework/issues/4855","repository_url":"https://api.github.com/repos/zendframework/zendframework","labels_url":"https://api.github.com/repos/zendframework/zendframework/issues/4855/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zendframework/issues/4855/comments","events_url":"https://api.github.com/repos/zendframework/zendframework/issues/4855/events","html_url":"https://github.com/zendframework/zendframework/issues/4855","id":16964078,"number":4855,"title":"Invalid placing of hidden checkboxes","user":{"login":"antony30","id":4201112,"avatar_url":"https://avatars.githubusercontent.com/u/4201112?v=3","gravatar_id":"","url":"https://api.github.com/users/antony30","html_url":"https://github.com/antony30","followers_url":"https://api.github.com/users/antony30/followers","following_url":"https://api.github.com/users/antony30/following{/other_user}","gists_url":"https://api.github.com/users/antony30/gists{/gist_id}","starred_url":"https://api.github.com/users/antony30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antony30/subscriptions","organizations_url":"https://api.github.com/users/antony30/orgs","repos_url":"https://api.github.com/users/antony30/repos","events_url":"https://api.github.com/users/antony30/events{/privacy}","received_events_url":"https://api.github.com/users/antony30/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zendframework/zendframework/labels/Form","name":"Form","color":"008000"},{"url":"https://api.github.com/repos/zendframework/zendframework/labels/To%20Be%20Closed","name":"To Be Closed","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2013-07-19T09:50:23Z","updated_at":"2016-06-27T19:55:56Z","closed_at":"2016-06-27T19:55:56Z","body":"If you have a label and a checkbox with a hidden element enabled this doesn't validate as valid code as the label should only contain one labelable element.\r\n\r\nFixed this by amending Form\\View\\Helper\\FormRow with - hope it helps\r\n\r\n                if (strstr($elementString,'type=\"hidden\"')){\r\n                  preg_match('#(<input [^>]*>)#',$elementString,$matches);\r\n                  $add = $matches[0];\r\n                  $elementString = str_replace($add,'',$elementString);\r\n                }\r\n\r\n                switch ($this->labelPosition) {\r\n                    case self::LABEL_PREPEND:\r\n                        $markup = $labelOpen . $label . $elementString . $labelClose . $add;\r\n                        break;\r\n                    case self::LABEL_APPEND:\r\n                    default:\r\n                        $markup = $labelOpen . $elementString . $label . $labelClose . $add;\r\n                        break;\r\n                }"},"comment":{"url":"https://api.github.com/repos/zendframework/zendframework/issues/comments/228856504","html_url":"https://github.com/zendframework/zendframework/issues/4855#issuecomment-228856504","issue_url":"https://api.github.com/repos/zendframework/zendframework/issues/4855","id":228856504,"user":{"login":"GeeH","id":613376,"avatar_url":"https://avatars.githubusercontent.com/u/613376?v=3","gravatar_id":"","url":"https://api.github.com/users/GeeH","html_url":"https://github.com/GeeH","followers_url":"https://api.github.com/users/GeeH/followers","following_url":"https://api.github.com/users/GeeH/following{/other_user}","gists_url":"https://api.github.com/users/GeeH/gists{/gist_id}","starred_url":"https://api.github.com/users/GeeH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeeH/subscriptions","organizations_url":"https://api.github.com/users/GeeH/orgs","repos_url":"https://api.github.com/users/GeeH/repos","events_url":"https://api.github.com/users/GeeH/events{/privacy}","received_events_url":"https://api.github.com/users/GeeH/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T19:55:55Z","updated_at":"2016-06-27T19:55:55Z","body":"This issue has been closed as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html"}}
{"actor":{"display_login":"GeeH"}}