{"action":"opened","issue":{"url":"https://api.github.com/repos/fatfreecrm/fat_free_crm/issues/415","labels_url":"https://api.github.com/repos/fatfreecrm/fat_free_crm/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/fatfreecrm/fat_free_crm/issues/415/comments","events_url":"https://api.github.com/repos/fatfreecrm/fat_free_crm/issues/415/events","html_url":"https://github.com/fatfreecrm/fat_free_crm/issues/415","id":55261251,"number":415,"title":"Custom field serialization is broken","user":{"login":"steveyken","id":149198,"avatar_url":"https://avatars.githubusercontent.com/u/149198?v=3","gravatar_id":"","url":"https://api.github.com/users/steveyken","html_url":"https://github.com/steveyken","followers_url":"https://api.github.com/users/steveyken/followers","following_url":"https://api.github.com/users/steveyken/following{/other_user}","gists_url":"https://api.github.com/users/steveyken/gists{/gist_id}","starred_url":"https://api.github.com/users/steveyken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveyken/subscriptions","organizations_url":"https://api.github.com/users/steveyken/orgs","repos_url":"https://api.github.com/users/steveyken/repos","events_url":"https://api.github.com/users/steveyken/events{/privacy}","received_events_url":"https://api.github.com/users/steveyken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fatfreecrm/fat_free_crm/labels/rails4","name":"rails4","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"warp","id":10120,"avatar_url":"https://avatars.githubusercontent.com/u/10120?v=3","gravatar_id":"","url":"https://api.github.com/users/warp","html_url":"https://github.com/warp","followers_url":"https://api.github.com/users/warp/followers","following_url":"https://api.github.com/users/warp/following{/other_user}","gists_url":"https://api.github.com/users/warp/gists{/gist_id}","starred_url":"https://api.github.com/users/warp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warp/subscriptions","organizations_url":"https://api.github.com/users/warp/orgs","repos_url":"https://api.github.com/users/warp/repos","events_url":"https://api.github.com/users/warp/events{/privacy}","received_events_url":"https://api.github.com/users/warp/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-01-23T09:30:25Z","updated_at":"2015-01-23T09:30:25Z","closed_at":null,"body":"When a \"checkbox list\" custom field is added, we run serialization code to ensure ActiveRecord treats the data as an Array. This has stopped working in the rails4 branch.\r\n\r\nSteps to reproduce\r\n\r\n* Goto /admin/fields\r\n* Add a new custom field of type \"Checkbox list\" (not checkbox) and give it several pipe separated values.\r\n* Save the field\r\n* Open up a rails console and type:\r\n\r\n    Contact.serialized_attributes\r\n\r\nThe only result is ```subscribed_users``` but we should see the new custom field as well.\r\n\r\nRelevant code is here https://github.com/fatfreecrm/fat_free_crm/blob/rails4/lib/fat_free_crm/fields.rb#L39\r\n\r\nI've verified that ```serialize(custom_field_name, Array)``` is being called but appears to be making no difference to the serialized_attributes.\r\n"}}