Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5
-
Fix Version/s: 4.6
-
Component/s: CiviCRM Search
-
Labels:None
-
Documentation Required?:None
Description
To replicate:
- Find an existing sample organization
- Add > 1 'employer of' relationship for the organization
- Now delete one of the employee records
- Go to advanced search:
- enter the org name in the top field (complete or partial name)
- change Display Results As to "Related Contacts" > "Employee of"
Results will include the deleted employee contact record.
It looks like we need to add " AND contact_b.is_deleted " to the WHERE clause constructed by CRM_Contact_BAO_Query::filterRelatedContacts(). I took a shot at doing this but didn't quite get it right. Hopefully the fix is more obvious to you
Attachments
Issue Links
- supplements
-
CRM-13216 Advanced Search shows deleted contacts
- Done/Fixed