{"action":"closed","issue":{"url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/156","labels_url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/156/comments","events_url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/156/events","html_url":"https://github.com/inpsyde/multilingual-press/issues/156","id":103523212,"number":156,"title":"Content relations can't be deleted from the \"other end\"","user":{"login":"kraftner","id":2428517,"avatar_url":"https://avatars.githubusercontent.com/u/2428517?v=3","gravatar_id":"","url":"https://api.github.com/users/kraftner","html_url":"https://github.com/kraftner","followers_url":"https://api.github.com/users/kraftner/followers","following_url":"https://api.github.com/users/kraftner/following{/other_user}","gists_url":"https://api.github.com/users/kraftner/gists{/gist_id}","starred_url":"https://api.github.com/users/kraftner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraftner/subscriptions","organizations_url":"https://api.github.com/users/kraftner/orgs","repos_url":"https://api.github.com/users/kraftner/repos","events_url":"https://api.github.com/users/kraftner/events{/privacy}","received_events_url":"https://api.github.com/users/kraftner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inpsyde/multilingual-press/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/inpsyde/multilingual-press/labels/content%20relations","name":"content relations","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"login":"tfrommen","id":6049306,"avatar_url":"https://avatars.githubusercontent.com/u/6049306?v=3","gravatar_id":"","url":"https://api.github.com/users/tfrommen","html_url":"https://github.com/tfrommen","followers_url":"https://api.github.com/users/tfrommen/followers","following_url":"https://api.github.com/users/tfrommen/following{/other_user}","gists_url":"https://api.github.com/users/tfrommen/gists{/gist_id}","starred_url":"https://api.github.com/users/tfrommen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfrommen/subscriptions","organizations_url":"https://api.github.com/users/tfrommen/orgs","repos_url":"https://api.github.com/users/tfrommen/repos","events_url":"https://api.github.com/users/tfrommen/events{/privacy}","received_events_url":"https://api.github.com/users/tfrommen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inpsyde/multilingual-press/milestones/7","html_url":"https://github.com/inpsyde/multilingual-press/milestones/2.2.1","labels_url":"https://api.github.com/repos/inpsyde/multilingual-press/milestones/7/labels","id":1158908,"number":7,"title":"2.2.1","description":null,"creator":{"login":"tfrommen","id":6049306,"avatar_url":"https://avatars.githubusercontent.com/u/6049306?v=3","gravatar_id":"","url":"https://api.github.com/users/tfrommen","html_url":"https://github.com/tfrommen","followers_url":"https://api.github.com/users/tfrommen/followers","following_url":"https://api.github.com/users/tfrommen/following{/other_user}","gists_url":"https://api.github.com/users/tfrommen/gists{/gist_id}","starred_url":"https://api.github.com/users/tfrommen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfrommen/subscriptions","organizations_url":"https://api.github.com/users/tfrommen/orgs","repos_url":"https://api.github.com/users/tfrommen/repos","events_url":"https://api.github.com/users/tfrommen/events{/privacy}","received_events_url":"https://api.github.com/users/tfrommen/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-06-10T16:33:38Z","updated_at":"2015-08-28T09:46:23Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-08-27T14:27:37Z","updated_at":"2015-08-28T09:46:23Z","closed_at":"2015-08-28T09:46:23Z","body":"If you try to remove a content relation from the end it wasn't created originally this doesn't work.\r\n\r\nThe problem seems to be in [`Mlp_Content_Relations.php->delete_relation`](https://github.com/inpsyde/multilingual-press/blob/d478dc109995afb2f09d2ca9f23fa447163f2f54/inc/db/Mlp_Content_Relations.php#L194-L198). The where-clause doesn't consider this situation.\r\n\r\n~~I'll continue playing around to see if coming from the wrong side also is an issue with other things like changing a relation.~~\r\n\r\nI also wonder if this is an intended limitation or a known issue.\r\n"}}