{"action":"created","issue":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/476","labels_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/476/comments","events_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/476/events","html_url":"https://github.com/WebDevStudios/CMB2/pull/476","id":109387436,"number":476,"title":"taxonomy_select none option fix","user":{"login":"adamcapriola","id":279928,"avatar_url":"https://avatars.githubusercontent.com/u/279928?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcapriola","html_url":"https://github.com/adamcapriola","followers_url":"https://api.github.com/users/adamcapriola/followers","following_url":"https://api.github.com/users/adamcapriola/following{/other_user}","gists_url":"https://api.github.com/users/adamcapriola/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcapriola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcapriola/subscriptions","organizations_url":"https://api.github.com/users/adamcapriola/orgs","repos_url":"https://api.github.com/users/adamcapriola/repos","events_url":"https://api.github.com/users/adamcapriola/events{/privacy}","received_events_url":"https://api.github.com/users/adamcapriola/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-01T21:17:31Z","updated_at":"2015-10-01T21:40:51Z","closed_at":"2015-10-01T21:20:39Z","pull_request":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/pulls/476","html_url":"https://github.com/WebDevStudios/CMB2/pull/476","diff_url":"https://github.com/WebDevStudios/CMB2/pull/476.diff","patch_url":"https://github.com/WebDevStudios/CMB2/pull/476.patch"},"body":"I have a taxonomy with numeric terms — 0, 1, 2, 3, etc... — and the `taxonomy_select` `option` output was looking like this:\r\n\r\n```html\r\n<option value=\"\" selected=\"selected\">None</option>\r\n<option value=\"0\" selected=\"selected\">0</option>\r\n<option value=\"1\">1</option>\r\n```\r\n\r\nDoing a strict comparison seems to fix the issue and only `None` gets selected. I can then select the `0` value and it is saved and selected correctly too."},"comment":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/comments/144857822","html_url":"https://github.com/WebDevStudios/CMB2/pull/476#issuecomment-144857822","issue_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/476","id":144857822,"user":{"login":"adamcapriola","id":279928,"avatar_url":"https://avatars.githubusercontent.com/u/279928?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcapriola","html_url":"https://github.com/adamcapriola","followers_url":"https://api.github.com/users/adamcapriola/followers","following_url":"https://api.github.com/users/adamcapriola/following{/other_user}","gists_url":"https://api.github.com/users/adamcapriola/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcapriola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcapriola/subscriptions","organizations_url":"https://api.github.com/users/adamcapriola/orgs","repos_url":"https://api.github.com/users/adamcapriola/repos","events_url":"https://api.github.com/users/adamcapriola/events{/privacy}","received_events_url":"https://api.github.com/users/adamcapriola/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T21:40:51Z","updated_at":"2015-10-01T21:40:51Z","body":"Oops! My bad."}}