{"action":"created","issue":{"url":"https://api.github.com/repos/ezsystems/ezpublish-legacy/issues/1183","labels_url":"https://api.github.com/repos/ezsystems/ezpublish-legacy/issues/1183/labels{/name}","comments_url":"https://api.github.com/repos/ezsystems/ezpublish-legacy/issues/1183/comments","events_url":"https://api.github.com/repos/ezsystems/ezpublish-legacy/issues/1183/events","html_url":"https://github.com/ezsystems/ezpublish-legacy/pull/1183","id":93755235,"number":1183,"title":"Fix EZP-24530: Editing other language removes translations","user":{"login":"bdunogier","id":235928,"avatar_url":"https://avatars.githubusercontent.com/u/235928?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunogier","html_url":"https://github.com/bdunogier","followers_url":"https://api.github.com/users/bdunogier/followers","following_url":"https://api.github.com/users/bdunogier/following{/other_user}","gists_url":"https://api.github.com/users/bdunogier/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunogier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunogier/subscriptions","organizations_url":"https://api.github.com/users/bdunogier/orgs","repos_url":"https://api.github.com/users/bdunogier/repos","events_url":"https://api.github.com/users/bdunogier/events{/privacy}","received_events_url":"https://api.github.com/users/bdunogier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T10:18:03Z","updated_at":"2015-07-09T08:28:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ezsystems/ezpublish-legacy/pulls/1183","html_url":"https://github.com/ezsystems/ezpublish-legacy/pull/1183","diff_url":"https://github.com/ezsystems/ezpublish-legacy/pull/1183.diff","patch_url":"https://github.com/ezsystems/ezpublish-legacy/pull/1183.patch"},"body":"Given a content that has a relation list field, and has one translation in a secondary language with relations in the relation list field, publishing a new translation in the main language will remove the relations in other languages.\r\n\r\nThe lines that are removed go back to 2005 (@45eb5e7), and don't reference a bug, meaning that we don't really know what it fixed (something with reverse relations).\r\n\r\n### Testing\r\n1. Site has eng-GB and fre-FR, and a Content Type \"Relation list\" with a relation list attribute\r\n2. Create a content of type \"Relation list\" in eng-GB, with a relation to object A\r\n3. Edit the content in fre-FR, and add a relation to object B\r\n4. Check in the object's relations tab that both relations to A and B are listed\r\n5. Edit the content in eng-GB, publish without changing it\r\n6. Check in the object's relations tab that both relations to A and B are listed.\r\n\r\nWithout the patch, step 6 fails, and only the eng-GB relation is listed.\r\n"},"comment":{"url":"https://api.github.com/repos/ezsystems/ezpublish-legacy/issues/comments/119872948","html_url":"https://github.com/ezsystems/ezpublish-legacy/pull/1183#issuecomment-119872948","issue_url":"https://api.github.com/repos/ezsystems/ezpublish-legacy/issues/1183","id":119872948,"user":{"login":"yannickroger","id":4035241,"avatar_url":"https://avatars.githubusercontent.com/u/4035241?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickroger","html_url":"https://github.com/yannickroger","followers_url":"https://api.github.com/users/yannickroger/followers","following_url":"https://api.github.com/users/yannickroger/following{/other_user}","gists_url":"https://api.github.com/users/yannickroger/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickroger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickroger/subscriptions","organizations_url":"https://api.github.com/users/yannickroger/orgs","repos_url":"https://api.github.com/users/yannickroger/repos","events_url":"https://api.github.com/users/yannickroger/events{/privacy}","received_events_url":"https://api.github.com/users/yannickroger/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T08:28:16Z","updated_at":"2015-07-09T08:28:16Z","body":"+1\r\nI tested it and it works fine."}}