{"action":"created","issue":{"url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/issues/5","repository_url":"https://api.github.com/repos/MetaModels/attribute_translatedurl","labels_url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/issues/5/comments","events_url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/issues/5/events","html_url":"https://github.com/MetaModels/attribute_translatedurl/issues/5","id":159966138,"number":5,"title":"Error on Metamodel new entry when having a translated url field","user":{"login":"klickagent","id":1005929,"avatar_url":"https://avatars.githubusercontent.com/u/1005929?v=3","gravatar_id":"","url":"https://api.github.com/users/klickagent","html_url":"https://github.com/klickagent","followers_url":"https://api.github.com/users/klickagent/followers","following_url":"https://api.github.com/users/klickagent/following{/other_user}","gists_url":"https://api.github.com/users/klickagent/gists{/gist_id}","starred_url":"https://api.github.com/users/klickagent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klickagent/subscriptions","organizations_url":"https://api.github.com/users/klickagent/orgs","repos_url":"https://api.github.com/users/klickagent/repos","events_url":"https://api.github.com/users/klickagent/events{/privacy}","received_events_url":"https://api.github.com/users/klickagent/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/labels/backend","name":"backend","color":"0b02e1"},{"url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"discordier","id":940331,"avatar_url":"https://avatars.githubusercontent.com/u/940331?v=3","gravatar_id":"","url":"https://api.github.com/users/discordier","html_url":"https://github.com/discordier","followers_url":"https://api.github.com/users/discordier/followers","following_url":"https://api.github.com/users/discordier/following{/other_user}","gists_url":"https://api.github.com/users/discordier/gists{/gist_id}","starred_url":"https://api.github.com/users/discordier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discordier/subscriptions","organizations_url":"https://api.github.com/users/discordier/orgs","repos_url":"https://api.github.com/users/discordier/repos","events_url":"https://api.github.com/users/discordier/events{/privacy}","received_events_url":"https://api.github.com/users/discordier/received_events","type":"User","site_admin":false},"assignees":[{"login":"discordier","id":940331,"avatar_url":"https://avatars.githubusercontent.com/u/940331?v=3","gravatar_id":"","url":"https://api.github.com/users/discordier","html_url":"https://github.com/discordier","followers_url":"https://api.github.com/users/discordier/followers","following_url":"https://api.github.com/users/discordier/following{/other_user}","gists_url":"https://api.github.com/users/discordier/gists{/gist_id}","starred_url":"https://api.github.com/users/discordier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discordier/subscriptions","organizations_url":"https://api.github.com/users/discordier/orgs","repos_url":"https://api.github.com/users/discordier/repos","events_url":"https://api.github.com/users/discordier/events{/privacy}","received_events_url":"https://api.github.com/users/discordier/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/milestones/6","html_url":"https://github.com/MetaModels/attribute_translatedurl/milestones/2.0.0","labels_url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/milestones/6/labels","id":639419,"number":6,"title":"2.0.0","description":null,"creator":{"login":"MiniModel","id":4333204,"avatar_url":"https://avatars.githubusercontent.com/u/4333204?v=3","gravatar_id":"","url":"https://api.github.com/users/MiniModel","html_url":"https://github.com/MiniModel","followers_url":"https://api.github.com/users/MiniModel/followers","following_url":"https://api.github.com/users/MiniModel/following{/other_user}","gists_url":"https://api.github.com/users/MiniModel/gists{/gist_id}","starred_url":"https://api.github.com/users/MiniModel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiniModel/subscriptions","organizations_url":"https://api.github.com/users/MiniModel/orgs","repos_url":"https://api.github.com/users/MiniModel/repos","events_url":"https://api.github.com/users/MiniModel/events{/privacy}","received_events_url":"https://api.github.com/users/MiniModel/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2014-04-24T17:01:04Z","updated_at":"2016-09-28T08:48:35Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-06-13T14:38:58Z","updated_at":"2016-09-28T09:03:15Z","closed_at":null,"body":"We have installed Contao 3.2.21 and are using MetaModels/attribute_translatedurl 2.0.0-alpha1.\r\n\r\nWhen I try to add a new content to one of the Metamodels which has a translated url field the error page \"Es ist ein Fehler aufgetreten\" is shown. The error_log shows the following error:\r\n\r\n`PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Column 'href' cannot be null (INSERT INTO tl_metamodel_translatedurl (att_id, item_id, language, tstamp, href, title) VALUES ('30',49,'de',1465828579,NULL,NULL))' thrown in /html/system/modules/core/library/Contao/Database/Statement.php on line 279`\r\n\r\n\r\nTo reproduce:\r\nSetup a metamodel and add a translated url field. Then go to the content of the meatmodel and try to add an element.\r\n\r\nThanks for your help.\r\nRoman"},"comment":{"url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/issues/comments/250111961","html_url":"https://github.com/MetaModels/attribute_translatedurl/issues/5#issuecomment-250111961","issue_url":"https://api.github.com/repos/MetaModels/attribute_translatedurl/issues/5","id":250111961,"user":{"login":"zonky2","id":1045318,"avatar_url":"https://avatars.githubusercontent.com/u/1045318?v=3","gravatar_id":"","url":"https://api.github.com/users/zonky2","html_url":"https://github.com/zonky2","followers_url":"https://api.github.com/users/zonky2/followers","following_url":"https://api.github.com/users/zonky2/following{/other_user}","gists_url":"https://api.github.com/users/zonky2/gists{/gist_id}","starred_url":"https://api.github.com/users/zonky2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonky2/subscriptions","organizations_url":"https://api.github.com/users/zonky2/orgs","repos_url":"https://api.github.com/users/zonky2/repos","events_url":"https://api.github.com/users/zonky2/events{/privacy}","received_events_url":"https://api.github.com/users/zonky2/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T09:03:15Z","updated_at":"2016-09-28T09:03:15Z","body":"@discordier what is the reason to save a empty value as ```null``` `https://github.com/MetaModels/attribute_translatedurl/blob/master/src/MetaModels/Attribute/TranslatedUrl/TranslatedUrl.php#L226"}}
{"actor":{"display_login":"zonky2"}}