{"action":"closed","issue":{"url":"https://api.github.com/repos/FluidTYPO3/flux/issues/1009","labels_url":"https://api.github.com/repos/FluidTYPO3/flux/issues/1009/labels{/name}","comments_url":"https://api.github.com/repos/FluidTYPO3/flux/issues/1009/comments","events_url":"https://api.github.com/repos/FluidTYPO3/flux/issues/1009/events","html_url":"https://github.com/FluidTYPO3/flux/issues/1009","id":116527453,"number":1009,"title":"Exception with TYPO3 7.6 - If both foreign_unique and foreign_selector are set, they must point to the same field","user":{"login":"Lagerregal","id":2297740,"avatar_url":"https://avatars.githubusercontent.com/u/2297740?v=3","gravatar_id":"","url":"https://api.github.com/users/Lagerregal","html_url":"https://github.com/Lagerregal","followers_url":"https://api.github.com/users/Lagerregal/followers","following_url":"https://api.github.com/users/Lagerregal/following{/other_user}","gists_url":"https://api.github.com/users/Lagerregal/gists{/gist_id}","starred_url":"https://api.github.com/users/Lagerregal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lagerregal/subscriptions","organizations_url":"https://api.github.com/users/Lagerregal/orgs","repos_url":"https://api.github.com/users/Lagerregal/repos","events_url":"https://api.github.com/users/Lagerregal/events{/privacy}","received_events_url":"https://api.github.com/users/Lagerregal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-12T11:02:40Z","updated_at":"2015-11-12T11:34:24Z","closed_at":"2015-11-12T11:34:24Z","body":"Flux throws an exception Table tt_content field [...]: If both foreign_unique and foreign_selector are set, they must point to the same field.\r\n\r\nI found a quick solution:\r\nThe default value of \"foreignUnique\" must be \"null\" instead of an empty string in class:\r\n\\FluidTYPO3\\Flux\\ViewHelpers\\Field\\AbstractRelationFieldViewHelper\r\n```\r\n$this->registerArgument('foreignUnique', 'string', 'Field which must be uniue for all children of a parent record.', FALSE, '');\r\n```\r\nshould be\r\n```\r\n$this->registerArgument('foreignUnique', 'string', 'Field which must be uniue for all children of a parent record.', FALSE, null);\r\n```"}}