From 22a17535d1789dc1cfcc6813232c1be55b42ce1c Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Tue, 26 Aug 2014 16:19:43 +0530 Subject: [PATCH] CRM-15169 --- CRM/Report/Form/Contribute/HouseholdSummary.php | 2 +- CRM/Report/Form/Contribute/OrganizationSummary.php | 2 +- CRM/Report/Form/Contribute/Repeat.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Report/Form/Contribute/HouseholdSummary.php b/CRM/Report/Form/Contribute/HouseholdSummary.php index 3a8b7978be..d46e707042 100644 --- a/CRM/Report/Form/Contribute/HouseholdSummary.php +++ b/CRM/Report/Form/Contribute/HouseholdSummary.php @@ -243,7 +243,7 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form { } } else { - $select[] = "{$table['alias']}.{$fieldName} as {$tableName}_{$fieldName}"; + $select[] = "{$field['dbAlias']} as {$tableName}_{$fieldName}"; $this->_columnHeaders["{$tableName}_{$fieldName}"]['title'] = CRM_Utils_Array::value('title', $field); $this->_columnHeaders["{$tableName}_{$fieldName}"]['type'] = CRM_Utils_Array::value('type', $field); diff --git a/CRM/Report/Form/Contribute/OrganizationSummary.php b/CRM/Report/Form/Contribute/OrganizationSummary.php index 7159cd9d96..160345197e 100644 --- a/CRM/Report/Form/Contribute/OrganizationSummary.php +++ b/CRM/Report/Form/Contribute/OrganizationSummary.php @@ -244,7 +244,7 @@ class CRM_Report_Form_Contribute_OrganizationSummary extends CRM_Report_Form { } } else { - $select[] = "{$table['alias']}.{$fieldName} as {$tableName}_{$fieldName}"; + $select[] = "{$field['dbAlias']} as {$tableName}_{$fieldName}"; $this->_columnHeaders["{$tableName}_{$fieldName}"]['title'] = CRM_Utils_Array::value('title', $field); $this->_columnHeaders["{$tableName}_{$fieldName}"]['type'] = CRM_Utils_Array::value('type', $field); diff --git a/CRM/Report/Form/Contribute/Repeat.php b/CRM/Report/Form/Contribute/Repeat.php index ab2b2b7d91..8677285443 100644 --- a/CRM/Report/Form/Contribute/Repeat.php +++ b/CRM/Report/Form/Contribute/Repeat.php @@ -464,7 +464,7 @@ LEFT JOIN civicrm_temp_civireport_repeat2 {$this->_aliases['civicrm_contribution * * @return array */ - function formRule($fields, $files, $self) { + static function formRule($fields, $files, $self) { $errors = $checkDate = $errorCount = array(); @@ -492,6 +492,7 @@ LEFT JOIN civicrm_temp_civireport_repeat2 {$this->_aliases['civicrm_contribution $idMapping = array( 'id' => ts('Contact'), + 'exposed_id' => ts('Contact'), 'country_id' => ts('Country'), 'state_province_id' => ts('State/Province'), 'contribution_source' => ts('Contribution Source'), -- 2.25.1