{"action":"opened","issue":{"url":"https://api.github.com/repos/ebizmarts/magemonkey/issues/137","repository_url":"https://api.github.com/repos/ebizmarts/magemonkey","labels_url":"https://api.github.com/repos/ebizmarts/magemonkey/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/ebizmarts/magemonkey/issues/137/comments","events_url":"https://api.github.com/repos/ebizmarts/magemonkey/issues/137/events","html_url":"https://github.com/ebizmarts/magemonkey/issues/137","id":161164277,"number":137,"title":"Unable to add to mailchimp newsletter subscribers","user":{"login":"zhartaunik","id":11556652,"avatar_url":"https://avatars.githubusercontent.com/u/11556652?v=3","gravatar_id":"","url":"https://api.github.com/users/zhartaunik","html_url":"https://github.com/zhartaunik","followers_url":"https://api.github.com/users/zhartaunik/followers","following_url":"https://api.github.com/users/zhartaunik/following{/other_user}","gists_url":"https://api.github.com/users/zhartaunik/gists{/gist_id}","starred_url":"https://api.github.com/users/zhartaunik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhartaunik/subscriptions","organizations_url":"https://api.github.com/users/zhartaunik/orgs","repos_url":"https://api.github.com/users/zhartaunik/repos","events_url":"https://api.github.com/users/zhartaunik/events{/privacy}","received_events_url":"https://api.github.com/users/zhartaunik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-20T10:28:43Z","updated_at":"2016-06-20T10:28:43Z","closed_at":null,"body":"Existing code has few logical issues.\r\ncustomer_id will allways exist, because $customer is not Customer object. It's Newsletter Subscriber object.\r\nThe other issue appeared at 13e80f1.\r\nCan't understand the logic: If Customer has name - then take name from config. Else if name in config exist we take the name from customer. Which not exist if we moved here.\r\n\r\nPatch attached\r\n[magemonkey_newsletter_subscription_issue.txt](https://github.com/ebizmarts/magemonkey/files/323176/magemonkey_newsletter_subscription_issue.txt)\r\n"}}
{"actor":{"display_login":"zhartaunik"}}