From 81272d80511919e1a79aa91c89a4157cc372445e Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Mon, 3 Apr 2017 16:26:12 -0400 Subject: [PATCH] CRM-20378 - populate select aliases so totals in parens work Without populating this variable, we get empty () when grouping. --- CRM/Report/Form/Campaign/SurveyDetails.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Report/Form/Campaign/SurveyDetails.php b/CRM/Report/Form/Campaign/SurveyDetails.php index b328657d4f..235ded902b 100644 --- a/CRM/Report/Form/Campaign/SurveyDetails.php +++ b/CRM/Report/Form/Campaign/SurveyDetails.php @@ -239,6 +239,7 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form { } $select[] = "{$field['dbAlias']} as {$tableName}_{$fieldName}"; + $this->_selectAliases[] = "{$tableName}_{$fieldName}"; $this->_columnHeaders["{$tableName}_{$fieldName}"]['title'] = CRM_Utils_Array::value('title', $field); $this->_columnHeaders["{$tableName}_{$fieldName}"]['type'] = CRM_Utils_Array::value('type', $field); } -- 2.25.1