{"action":"created","issue":{"url":"https://api.github.com/repos/alecritson/craft-spectrum-fieldtype/issues/6","repository_url":"https://api.github.com/repos/alecritson/craft-spectrum-fieldtype","labels_url":"https://api.github.com/repos/alecritson/craft-spectrum-fieldtype/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/alecritson/craft-spectrum-fieldtype/issues/6/comments","events_url":"https://api.github.com/repos/alecritson/craft-spectrum-fieldtype/issues/6/events","html_url":"https://github.com/alecritson/craft-spectrum-fieldtype/issues/6","id":158096399,"number":6,"title":"Initial color not set","user":{"login":"TomDeSmet","id":16959207,"avatar_url":"https://avatars.githubusercontent.com/u/16959207?v=3","gravatar_id":"","url":"https://api.github.com/users/TomDeSmet","html_url":"https://github.com/TomDeSmet","followers_url":"https://api.github.com/users/TomDeSmet/followers","following_url":"https://api.github.com/users/TomDeSmet/following{/other_user}","gists_url":"https://api.github.com/users/TomDeSmet/gists{/gist_id}","starred_url":"https://api.github.com/users/TomDeSmet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomDeSmet/subscriptions","organizations_url":"https://api.github.com/users/TomDeSmet/orgs","repos_url":"https://api.github.com/users/TomDeSmet/repos","events_url":"https://api.github.com/users/TomDeSmet/events{/privacy}","received_events_url":"https://api.github.com/users/TomDeSmet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-02T09:27:42Z","updated_at":"2016-06-02T10:51:44Z","closed_at":"2016-06-02T10:50:36Z","body":"I noticed that when there's no color chosen, the spectrum field has black as its default color. But as long as the user does not explicitely set a color (because they fancy the default black) in the template, there's no output.\r\n\r\nIt's not that big of a deal, but it doesn't provide nice code because I'm not sure how to test on it.\r\nIs not empty, not fieldName, != \"null\", |length\r\nnothing seems to work."},"comment":{"url":"https://api.github.com/repos/alecritson/craft-spectrum-fieldtype/issues/comments/223258592","html_url":"https://github.com/alecritson/craft-spectrum-fieldtype/issues/6#issuecomment-223258592","issue_url":"https://api.github.com/repos/alecritson/craft-spectrum-fieldtype/issues/6","id":223258592,"user":{"login":"alecritson","id":1488016,"avatar_url":"https://avatars.githubusercontent.com/u/1488016?v=3","gravatar_id":"","url":"https://api.github.com/users/alecritson","html_url":"https://github.com/alecritson","followers_url":"https://api.github.com/users/alecritson/followers","following_url":"https://api.github.com/users/alecritson/following{/other_user}","gists_url":"https://api.github.com/users/alecritson/gists{/gist_id}","starred_url":"https://api.github.com/users/alecritson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecritson/subscriptions","organizations_url":"https://api.github.com/users/alecritson/orgs","repos_url":"https://api.github.com/users/alecritson/repos","events_url":"https://api.github.com/users/alecritson/events{/privacy}","received_events_url":"https://api.github.com/users/alecritson/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T10:51:44Z","updated_at":"2016-06-02T10:51:44Z","body":"Hey @TomDeSmet \r\n\r\nThanks for the heads up, I understand this would have been frustrating.\r\n\r\nNow you can set a default color in the fieldtype settings, this will replace the initial black when first creating an entry etc, otherwise it will still default to black but will actually output `#000000` in your template.\r\n\r\nHope that helps :)"}}
{"actor":{"display_login":"alecritson"}}