{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5199","repository_url":"https://api.github.com/repos/silverstripe/silverstripe-framework","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5199/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5199/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5199/events","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/5199","id":141895788,"number":5199,"title":"Allow '0' in DropdownField","user":{"login":"JorisDebonnet","id":3286264,"avatar_url":"https://avatars.githubusercontent.com/u/3286264?v=3","gravatar_id":"","url":"https://api.github.com/users/JorisDebonnet","html_url":"https://github.com/JorisDebonnet","followers_url":"https://api.github.com/users/JorisDebonnet/followers","following_url":"https://api.github.com/users/JorisDebonnet/following{/other_user}","gists_url":"https://api.github.com/users/JorisDebonnet/gists{/gist_id}","starred_url":"https://api.github.com/users/JorisDebonnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JorisDebonnet/subscriptions","organizations_url":"https://api.github.com/users/JorisDebonnet/orgs","repos_url":"https://api.github.com/users/JorisDebonnet/repos","events_url":"https://api.github.com/users/JorisDebonnet/events{/privacy}","received_events_url":"https://api.github.com/users/JorisDebonnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-18T15:18:13Z","updated_at":"2016-03-18T16:44:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/pulls/5199","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/5199","diff_url":"https://github.com/silverstripe/silverstripe-framework/pull/5199.diff","patch_url":"https://github.com/silverstripe/silverstripe-framework/pull/5199.patch"},"body":"This fixes #5196. \r\n\r\nIt's actually sort of a workaround, because I feel like whatever code prettifies `<select>`s in the CMS should not ignore `<option>`s without any content. But this works too, without any harm (it just adds an invisible space to _all_ values, instead of just to falsy values)."},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/comments/198446794","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/5199#issuecomment-198446794","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5199","id":198446794,"user":{"login":"JorisDebonnet","id":3286264,"avatar_url":"https://avatars.githubusercontent.com/u/3286264?v=3","gravatar_id":"","url":"https://api.github.com/users/JorisDebonnet","html_url":"https://github.com/JorisDebonnet","followers_url":"https://api.github.com/users/JorisDebonnet/followers","following_url":"https://api.github.com/users/JorisDebonnet/following{/other_user}","gists_url":"https://api.github.com/users/JorisDebonnet/gists{/gist_id}","starred_url":"https://api.github.com/users/JorisDebonnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JorisDebonnet/subscriptions","organizations_url":"https://api.github.com/users/JorisDebonnet/orgs","repos_url":"https://api.github.com/users/JorisDebonnet/repos","events_url":"https://api.github.com/users/JorisDebonnet/events{/privacy}","received_events_url":"https://api.github.com/users/JorisDebonnet/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T16:44:23Z","updated_at":"2016-03-18T16:44:23Z","body":"Ah, I thought maybe some commits from the 3-branch were sometimes merged into older 3.x branches. They only go into the most recent (i.e. 3.3) then, or not even that (and only 3.4)? Is there maybe a page somewhere detailing how the branches work? :D \r\n\r\nAnyway, I personally don't really care whether it goes into previous versions. For now, I just improved this fix: the only change is now that the condition is changed from `Title` to `$Title.exists` (which allows the string '0'). "}}