Details
-
Type:
Patch
-
Status: Done/Fixed
-
Priority:
Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.1
-
Fix Version/s: 4.5
-
Component/s: CiviCRM API, Core CiviCRM
-
Labels:
Description
By adding a new relationship between two contacts, if the contact type (A or B) of one of the types of relationships has been established to "all contacts", this relationship is not displayed in the dropdown list.
It can be solved modifying /[DRUPAL_ROOT]/sites/all/modules/civicrm/CRM/Contact/BAO/Relationship.php file as shown in attached patch.
That patch is wrong. I'm not sure what problem it was trying to solve exactly (no steps to reproduce posted in this issue) but reversing the patch gives correct results for me.
Steps to reproduce current bug caused by this patch:
Create a relationship type between:
contact_a: Individual
contact_b: Any
Now try creating a relationship for a household or organization. Both sides will be incorrectly shown in the dropdown select when only one is appropriate.