From f541144918a67be83e7f3ec05e679cdf3cb0bf2c Mon Sep 17 00:00:00 2001 From: Alice Frumin Date: Wed, 10 Apr 2019 14:31:37 -0400 Subject: [PATCH] fixing test failure --- CRM/Case/BAO/Case.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Case/BAO/Case.php b/CRM/Case/BAO/Case.php index c1e65bbac670..0efa6b82238d 100644 --- a/CRM/Case/BAO/Case.php +++ b/CRM/Case/BAO/Case.php @@ -720,7 +720,7 @@ public static function getCasesSummary($allCases = TRUE) { $myCaseWhereClauseB = " AND case_relationship.contact_id_b = {$userID} AND case_relationship.is_active "; $myGroupByClauseB = " GROUP BY CONCAT(civicrm_case.id,'-',case_relationship.contact_id_b)"; } - $myGroupByClauseB .= ", case_status.label, status_id, case_type_id"; + $myGroupByClauseB .= ", case_status.label, status_id, case_type_id, civicrm_case.id"; $myGroupByClauseA = $myGroupByClauseB; // FIXME: This query could be a lot more efficient if it used COUNT() instead of returning all rows and then counting them with php $query = "