CRM-19801: Fixing changing a relationship type from A to B or vice versa
authoromar abu hussein <opetmar91@gmail.com>
Mon, 26 Dec 2016 14:38:23 +0000 (14:38 +0000)
committeromar abu hussein <opetmar91@gmail.com>
Mon, 26 Dec 2016 15:14:26 +0000 (15:14 +0000)
commitf55fb370f3aee969ddbc9b19be232c36ef6cf9d8
treebc3753518dd9c4635262111c76936f8315dcffd9
parent4a4584f23212fc76b3b9f79b8a7572f89af66973
CRM-19801: Fixing changing a relationship type from A to B or vice versa

If you tried to change (A) relationship type of an exiting relationship (Like parent of) to another (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 get updated.

The issue is related to how postProcess handle contact_id_a & contact_id_b paramterters .

So in this PR I've refactored the postProcess method for the relationship form and with this refactoring I've have fixed this issue too
by properly hanlding conact_id_a and contact_id_b parameters.
CRM/Contact/Form/Relationship.php