{"action":"created","issue":{"url":"https://api.github.com/repos/OdinsPlasmaRifle/jquery.gavel/issues/1","repository_url":"https://api.github.com/repos/OdinsPlasmaRifle/jquery.gavel","labels_url":"https://api.github.com/repos/OdinsPlasmaRifle/jquery.gavel/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/OdinsPlasmaRifle/jquery.gavel/issues/1/comments","events_url":"https://api.github.com/repos/OdinsPlasmaRifle/jquery.gavel/issues/1/events","html_url":"https://github.com/OdinsPlasmaRifle/jquery.gavel/issues/1","id":155924385,"number":1,"title":"Error getting values on multi select field types","user":{"login":"OdinsPlasmaRifle","id":13023194,"avatar_url":"https://avatars.githubusercontent.com/u/13023194?v=3","gravatar_id":"","url":"https://api.github.com/users/OdinsPlasmaRifle","html_url":"https://github.com/OdinsPlasmaRifle","followers_url":"https://api.github.com/users/OdinsPlasmaRifle/followers","following_url":"https://api.github.com/users/OdinsPlasmaRifle/following{/other_user}","gists_url":"https://api.github.com/users/OdinsPlasmaRifle/gists{/gist_id}","starred_url":"https://api.github.com/users/OdinsPlasmaRifle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OdinsPlasmaRifle/subscriptions","organizations_url":"https://api.github.com/users/OdinsPlasmaRifle/orgs","repos_url":"https://api.github.com/users/OdinsPlasmaRifle/repos","events_url":"https://api.github.com/users/OdinsPlasmaRifle/events{/privacy}","received_events_url":"https://api.github.com/users/OdinsPlasmaRifle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-20T09:39:37Z","updated_at":"2016-05-20T09:40:08Z","closed_at":null,"body":"When using a multi-select field there is an error when getting the value of the field. This is most noticeable when using the \"required\" rule. The resulting error breaks all other validation after the specific field.\r\n\r\nChanges need to be made to cater for container objects as values."},"comment":{"url":"https://api.github.com/repos/OdinsPlasmaRifle/jquery.gavel/issues/comments/220561636","html_url":"https://github.com/OdinsPlasmaRifle/jquery.gavel/issues/1#issuecomment-220561636","issue_url":"https://api.github.com/repos/OdinsPlasmaRifle/jquery.gavel/issues/1","id":220561636,"user":{"login":"OdinsPlasmaRifle","id":13023194,"avatar_url":"https://avatars.githubusercontent.com/u/13023194?v=3","gravatar_id":"","url":"https://api.github.com/users/OdinsPlasmaRifle","html_url":"https://github.com/OdinsPlasmaRifle","followers_url":"https://api.github.com/users/OdinsPlasmaRifle/followers","following_url":"https://api.github.com/users/OdinsPlasmaRifle/following{/other_user}","gists_url":"https://api.github.com/users/OdinsPlasmaRifle/gists{/gist_id}","starred_url":"https://api.github.com/users/OdinsPlasmaRifle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OdinsPlasmaRifle/subscriptions","organizations_url":"https://api.github.com/users/OdinsPlasmaRifle/orgs","repos_url":"https://api.github.com/users/OdinsPlasmaRifle/repos","events_url":"https://api.github.com/users/OdinsPlasmaRifle/events{/privacy}","received_events_url":"https://api.github.com/users/OdinsPlasmaRifle/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T09:40:08Z","updated_at":"2016-05-20T09:40:08Z","body":"A temporary fix for the \"required\" validation can be applied by replacing the \"validateRequired\" code with the following:\r\n\r\n```javascript\r\n// Built in required validation\r\nvalidateRequired: function(element, extra) {\r\n\tvar res = true;\r\n\tvar type = element.attr('type');\r\n\tvar name = element.attr('name');\r\n\tvar value = element.val();\r\n\tif(typeof name !== \"undefined\") {\r\n\t\tif (type === \"radio\" && !$('input[name=\"' + name + '\"]').is(\":checked\")) {\r\n\t\t\tres = false;\r\n\t\t} else if (type === \"checkbox\" && !element.is(\":checked\")) {\r\n\t\t\tres = false;\r\n\t\t} else if (typeof value === \"object\" && $.isEmptyObject(value)) {\r\n\t\t\tres = false;\r\n\t\t} else if (typeof value !== \"object\" &&!value.match(/\\S+/)) {\r\n\t\t\tres = false;\r\n\t\t}\r\n\t}\r\n\treturn res;\r\n},\r\n```"}}
{"actor":{"display_login":"OdinsPlasmaRifle"}}