Skip to content

Commit

Permalink
fix group by for CRM/Case/BAO/Case::getCasesSummary
Browse files Browse the repository at this point in the history
  • Loading branch information
alifrumin committed Apr 10, 2019
1 parent 4840999 commit 5a593ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Case/BAO/Case.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,9 +804,9 @@ public static function getCasesSummary($allCases = TRUE) {
$all = 0;
$case_owner = 2;
$myCaseWhereClauseA = " AND case_relationship.contact_id_a = {$userID} AND case_relationship.is_active ";
$myGroupByClauseA = " GROUP BY CONCAT(case_relationship.case_id,'-',case_relationship.contact_id_a)";
$myGroupByClauseA = " GROUP BY CONCAT(civicrm_case.id,'-',case_relationship.contact_id_a)";
$myCaseWhereClauseB = " AND case_relationship.contact_id_b = {$userID} AND case_relationship.is_active ";
$myGroupByClauseB = " GROUP BY CONCAT(case_relationship.case_id,'-',case_relationship.contact_id_b)";
$myGroupByClauseB = " GROUP BY CONCAT(civicrm_case.id,'-',case_relationship.contact_id_b)";
}
$myGroupByClauseB .= ", case_status.label, status_id, case_type_id";
$myGroupByClauseA = $myGroupByClauseB;
Expand Down

0 comments on commit 5a593ae

Please sign in to comment.