{"action":"closed","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/2053","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/2053/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/2053/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/2053/events","html_url":"https://github.com/mautic/mautic/issues/2053","id":166157127,"number":2053,"title":"Error 500 when editing a contact with non-valid birthday","user":{"login":"pierreavizou","id":7101583,"avatar_url":"https://avatars.githubusercontent.com/u/7101583?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreavizou","html_url":"https://github.com/pierreavizou","followers_url":"https://api.github.com/users/pierreavizou/followers","following_url":"https://api.github.com/users/pierreavizou/following{/other_user}","gists_url":"https://api.github.com/users/pierreavizou/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreavizou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreavizou/subscriptions","organizations_url":"https://api.github.com/users/pierreavizou/orgs","repos_url":"https://api.github.com/users/pierreavizou/repos","events_url":"https://api.github.com/users/pierreavizou/events{/privacy}","received_events_url":"https://api.github.com/users/pierreavizou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mautic/mautic/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-18T18:13:50Z","updated_at":"2016-08-18T16:55:19Z","closed_at":"2016-08-18T16:55:19Z","body":"What type of report is this:\r\n\r\n| Q  | A\r\n| ---| ---\r\n| Bug report? | Y\r\n| Feature request? | N\r\n| Enhancement? | N\r\n\r\n## Description:\r\nI have imported a buch of contacts with a CSV file, and for some of them, the birthdate was not known (customer did not give it), so the tool I exported from uses a default value of '0000-00-00'. \r\n\r\nTherefore, in Mautic, for these contacts, the \"Birthday\" field is set to the same value of '0000-00-00'. When trying to edit one of these, I get an Internal Server Error. The logs are below.\r\n\r\n## If a bug:\r\n\r\n| Q   | A\r\n| --- | ---\r\n| Mautic version | 2.0.1\r\n| PHP version | 5.6.23\r\n\r\n### Steps to reproduce:\r\n1. Create a CSV file containing contact data, with one or several lines containing the value: '0000-00-00'\r\n2. Match the column containing the '0000-00-00' values to the Birthday field in Mautic\r\n3. Try to edit a contact for which the birthday has been set to '0000-00-00'\r\n4. You should get an Internal Server Error\r\n \r\n### Log errors: \r\n\r\n`[2016-07-18 18:02:50] mautic.CRITICAL: Uncaught PHP Exception Symfony\\Component\\Form\\Exception\\TransformationFailedException: \"Unable to transform value for property path \"birthday\": Unexpected data found.\" at /var/www/html/vendor/symfony/form/Form.php line 1086 {\"exception\":\"[object] (Symfony\\\\Component\\\\Form\\\\Exception\\\\TransformationFailedException(code: 0): Unable to transform value for property path \\\"birthday\\\": Unexpected data found. at /var/www/html/vendor/symfony/form/Form.php:1086, Symfony\\\\Component\\\\Form\\\\Exception\\\\TransformationFailedException(code: 0): Unexpected data found. at /var/www/html/vendor/symfony/form/Extension/Core/DataTransformer/DateTimeToStringTransformer.php:147)\"} []`\r\n\r\n"}}
{"actor":{"display_login":"alanhartless"}}