CiviCase: use aliases on all items in case activity query b/c ANY_VALUE
authorAndrew Hunt <andrew@aghstrategies.com>
Fri, 19 Apr 2019 22:40:16 +0000 (18:40 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Fri, 19 Apr 2019 22:40:16 +0000 (18:40 -0400)
CRM/Case/BAO/Case.php

index 95278d995d4efad302db8624365eab0fe4523623..a44bf458eb80ee85072f03447d45c155e00a975e 100644 (file)
@@ -429,10 +429,10 @@ WHERE cc.contact_id = %1 AND civicrm_case_type.name = '{$caseType}'";
       'civicrm_phone.phone as phone',
       'civicrm_contact.contact_type as contact_type',
       'civicrm_contact.contact_sub_type as contact_sub_type',
-      't_act.activity_type_id',
+      't_act.activity_type_id as activity_type_id',
       'civicrm_case.case_type_id as case_type_id',
       'civicrm_case.status_id as case_status_id',
-      't_act.status_id',
+      't_act.status_id as status_id',
       'civicrm_case.start_date as case_start_date',
       'case_relation_type.label_b_a as case_role',
       't_act.activity_date_time as activity_date_time',