Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.0, 4.0.0
-
Fix Version/s: 3.4.1
-
Component/s: CiviCRM Search
-
Labels:None
Description
Just upgraded to 3.4.0, wanted to try the new related contact search.
I decided to look for "parents of campers" and gave the following search criteria:
-display results as: related contacts
-relationship type: parent of
-event type: Sierra Friends Camp
and got the following result:
Database Error Code: Unknown column 'displayRelType.relationship_type_id' in 'where clause', 1054
Additional Details:
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -19
[message] => DB Error: no such field
[mode] => 16
[debug_info] => SELECT DISTINCT(contact_a.id) as id FROM civicrm_contact contact_a LEFT JOIN civicrm_participant ON civicrm_participant.contact_id = contact_a.id INNER JOIN civicrm_event ON civicrm_participant.event_id = civicrm_event.id WHERE displayRelType.relationship_type_id = 1 AND (contact_a.is_deleted = 0) LIMIT 0, 50 [nativecode=1054 ** Unknown column 'displayRelType.relationship_type_id' in 'where clause']
[type] => DB_Error
[user_info] => SELECT DISTINCT(contact_a.id) as id FROM civicrm_contact contact_a LEFT JOIN civicrm_participant ON civicrm_participant.contact_id = contact_a.id INNER JOIN civicrm_event ON civicrm_participant.event_id = civicrm_event.id WHERE displayRelType.relationship_type_id = 1 AND (contact_a.is_deleted = 0) LIMIT 0, 50 [nativecode=1054 ** Unknown column 'displayRelType.relationship_type_id' in 'where clause']
[to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT DISTINCT(contact_a.id) as id FROM civicrm_contact contact_a LEFT JOIN civicrm_participant ON civicrm_participant.contact_id = contact_a.id INNER JOIN civicrm_event ON civicrm_participant.event_id = civicrm_event.id WHERE displayRelType.relationship_type_id = 1 AND (contact_a.is_deleted = 0) LIMIT 0, 50 [nativecode=1054 ** Unknown column 'displayRelType.relationship_type_id' in 'where clause']"]
)