Adjust brackets to fix logic for civicrm_relationship.is_active
authorJustin Freeman <justin@agileware.com.au>
Tue, 6 Nov 2018 03:12:23 +0000 (14:12 +1100)
committerAgileware Support <support@agileware.com.au>
Tue, 20 Nov 2018 03:54:34 +0000 (14:54 +1100)
CRM/Case/BAO/Case.php

index a0d9a5704ebeae5071378c4c9c4672342d0f65f3..8c56360764a61d77e8b6a4553f3907dc823c7573 100644 (file)
@@ -808,7 +808,7 @@ SELECT case_status.label AS case_status, status_id, civicrm_case_type.title AS c
  LEFT JOIN civicrm_option_value case_status ON ( civicrm_case.status_id = case_status.value
  AND option_group_case_status.id = case_status.option_group_id )
  LEFT JOIN civicrm_relationship case_relationship ON ( case_relationship.case_id  = civicrm_case.id
- AND case_relationship.contact_id_b = {$userID}) AND case_relationship.is_active
+ AND case_relationship.contact_id_b = {$userID} AND case_relationship.is_active )
  WHERE is_deleted = 0 AND cc.contact_id IN (SELECT id FROM civicrm_contact WHERE is_deleted <> 1)
 {$myCaseWhereClause} {$myGroupByClause}";