{"action":"opened","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/360","labels_url":"https://api.github.com/repos/mautic/mautic/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/360/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/360/events","html_url":"https://github.com/mautic/mautic/issues/360","id":72883317,"number":360,"title":"Possible Problem with Add to List Action","user":{"login":"digitalgarage","id":9042878,"avatar_url":"https://avatars.githubusercontent.com/u/9042878?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalgarage","html_url":"https://github.com/digitalgarage","followers_url":"https://api.github.com/users/digitalgarage/followers","following_url":"https://api.github.com/users/digitalgarage/following{/other_user}","gists_url":"https://api.github.com/users/digitalgarage/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgarage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgarage/subscriptions","organizations_url":"https://api.github.com/users/digitalgarage/orgs","repos_url":"https://api.github.com/users/digitalgarage/repos","events_url":"https://api.github.com/users/digitalgarage/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgarage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-03T23:35:43Z","updated_at":"2015-05-03T23:35:43Z","closed_at":null,"body":"Hi Folks,\r\n\r\nOn both allyde.com and a self hosted version of mautic I have been having problems when adding a lead to list through one of the form actions.\r\n\r\n## Steps to Reproduce##\r\n\r\nOn a clean installation of Mautic I created a list called Test List. \r\n\r\n![mautic-1](https://cloud.githubusercontent.com/assets/9042878/7447453/bc5b5c0a-f23f-11e4-99ea-53cd8ee00386.png)\r\n\r\nI then created a form Test Add to Test List with the following fields:\r\n\r\n![mautic-3](https://cloud.githubusercontent.com/assets/9042878/7447468/08f73bd8-f240-11e4-9b04-d44871a05a6f.png)\r\n\r\nAdd the following actions:\r\n\r\n![mautic-4](https://cloud.githubusercontent.com/assets/9042878/7447476/2bc1892a-f240-11e4-81ad-d85a189de47f.png)\r\n\r\nI then embedded the form using the javascript method into a web page.  When submitting the form the page redirected to the local install of mautic and a white page.  When I looked at the error log I had the following error:\r\n\r\n```PHP Fatal error:  Cannot use object of type Mautic\\LeadBundle\\Entity\\Lead as array in /Applications/MAMP/htdocs/mauticgit/app/bundles/FormBundle/Model/SubmissionModel.php on line 281```\r\n\r\nI then removed the Add to Test List action and re-submitted the form.  This time the form submission happened correctly, the lead was created and the form submission page was shown.\r\n\r\nThis was a clean install and the lead did not previously exist.\r\n\r\nI got this error initially on allyde.com so I tried running on a local version to see where the error was coming from.\r\n\r\nThis same error (or a similar error) has also been reported on the forums (https://www.mautic.org/community/index.php/304-error-when-a-lead-already-exists-between-my-leads) by myself and one other.  \r\n\r\nAt first I thought this was when a lead was added to the same list twice but when I tried to replicate locally it was even when a lead was added to a list the first time.\r\n\r\nIs this just me or are others able to reproduce the same error?\r\n\r\nCheers,\r\nEric.\r\n\r\n\r\n"}}