{"action":"created","issue":{"url":"https://api.github.com/repos/civicrm/civicrm-core/issues/9579","repository_url":"https://api.github.com/repos/civicrm/civicrm-core","labels_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/9579/labels{/name}","comments_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/9579/comments","events_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/9579/events","html_url":"https://github.com/civicrm/civicrm-core/pull/9579","id":197595304,"number":9579,"title":"CRM-19801: Fixing changing a relationship type from A to B or vice versa","user":{"login":"omarabuhussein","id":6275540,"avatar_url":"https://avatars.githubusercontent.com/u/6275540?v=3","gravatar_id":"","url":"https://api.github.com/users/omarabuhussein","html_url":"https://github.com/omarabuhussein","followers_url":"https://api.github.com/users/omarabuhussein/followers","following_url":"https://api.github.com/users/omarabuhussein/following{/other_user}","gists_url":"https://api.github.com/users/omarabuhussein/gists{/gist_id}","starred_url":"https://api.github.com/users/omarabuhussein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarabuhussein/subscriptions","organizations_url":"https://api.github.com/users/omarabuhussein/orgs","repos_url":"https://api.github.com/users/omarabuhussein/repos","events_url":"https://api.github.com/users/omarabuhussein/events{/privacy}","received_events_url":"https://api.github.com/users/omarabuhussein/received_events","type":"User","site_admin":false},"labels":[{"id":246037889,"url":"https://api.github.com/repos/civicrm/civicrm-core/labels/master","name":"master","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-26T14:52:57Z","updated_at":"2016-12-28T21:01:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/civicrm/civicrm-core/pulls/9579","html_url":"https://github.com/civicrm/civicrm-core/pull/9579","diff_url":"https://github.com/civicrm/civicrm-core/pull/9579.diff","patch_url":"https://github.com/civicrm/civicrm-core/pull/9579.patch"},"body":"If you tried to change **A** relationship type (Like Parent of ) of an exiting relationship to other **B** relationship type (Like Child of ) or vice versa then it will show you that the relationship get updated but it will not be it actually updated.\r\n\r\nThe issue is related to how **postProcess** handle contact_id_a & contact_id_b parameters .\r\n\r\nSo in this PR I've refactored the **postProcess** method for the relationship form and with this refactoring I've fixed this issue too by properly handling contact_id_a and contact_id_b parameters.\r\n\r\n---\r\n\r\n * [CRM-19801: changing the same relationship type of a relationship from A to B or vice versa does not work](https://issues.civicrm.org/jira/browse/CRM-19801)"},"comment":{"url":"https://api.github.com/repos/civicrm/civicrm-core/issues/comments/269540290","html_url":"https://github.com/civicrm/civicrm-core/pull/9579#issuecomment-269540290","issue_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/9579","id":269540290,"user":{"login":"omarabuhussein","id":6275540,"avatar_url":"https://avatars.githubusercontent.com/u/6275540?v=3","gravatar_id":"","url":"https://api.github.com/users/omarabuhussein","html_url":"https://github.com/omarabuhussein","followers_url":"https://api.github.com/users/omarabuhussein/followers","following_url":"https://api.github.com/users/omarabuhussein/following{/other_user}","gists_url":"https://api.github.com/users/omarabuhussein/gists{/gist_id}","starred_url":"https://api.github.com/users/omarabuhussein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarabuhussein/subscriptions","organizations_url":"https://api.github.com/users/omarabuhussein/orgs","repos_url":"https://api.github.com/users/omarabuhussein/repos","events_url":"https://api.github.com/users/omarabuhussein/events{/privacy}","received_events_url":"https://api.github.com/users/omarabuhussein/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T21:01:52Z","updated_at":"2016-12-28T21:01:52Z","body":"@jitendrapurohit I fixed the issues , can you please take another look "}}
{"actor":{"display_login":"omarabuhussein"}}