$this->_columnHeaders["civicrm_upto_{$upTo_year}"]['type'] = $field['type'];
$this->_columnHeaders["civicrm_upto_{$upTo_year}"]['title'] = "Up To $upTo_year";
- $this->_columnHeaders["{$previous_ppyear}"]['type'] = $field['type'];
- $this->_columnHeaders["{$previous_ppyear}"]['title'] = $previous_ppyear;
+ $this->_columnHeaders["year_{$previous_ppyear}"]['type'] = $field['type'];
+ $this->_columnHeaders["year_{$previous_ppyear}"]['title'] = $previous_ppyear;
- $this->_columnHeaders["{$previous_pyear}"]['type'] = $field['type'];
- $this->_columnHeaders["{$previous_pyear}"]['title'] = $previous_pyear;
+ $this->_columnHeaders["year_{$previous_pyear}"]['type'] = $field['type'];
+ $this->_columnHeaders["year_{$previous_pyear}"]['title'] = $previous_pyear;
- $this->_columnHeaders["{$previous_year}"]['type'] = $field['type'];
- $this->_columnHeaders["{$previous_year}"]['title'] = $previous_year;
+ $this->_columnHeaders["year_{$previous_year}"]['type'] = $field['type'];
+ $this->_columnHeaders["year_{$previous_year}"]['title'] = $previous_year;
$this->_columnHeaders["civicrm_life_time_total"]['type'] = $field['type'];
$this->_columnHeaders["civicrm_life_time_total"]['title'] = 'LifeTime';;
if ($dao->civicrm_contribution_receive_date) {
if ($dao->civicrm_contribution_receive_date > $upTo_year) {
$contributionSum += $dao->civicrm_contribution_total_amount;
- $rows[$dao->civicrm_contribution_contact_id][$dao->civicrm_contribution_receive_date] = $dao->civicrm_contribution_total_amount;
+ $rows[$dao->civicrm_contribution_contact_id]['year_' . $dao->civicrm_contribution_receive_date] = $dao->civicrm_contribution_total_amount;
}
}
else {