Skip to content

Commit

Permalink
Merge pull request #13671 from MegaphoneJon/reporting-11
Browse files Browse the repository at this point in the history
reporting-11 - fix Soft Credit report with full group by
  • Loading branch information
eileenmcnaughton authored Feb 22, 2019
2 parents b34b529 + 116fb0d commit 741d80c
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions CRM/Report/Form/Contribute/SoftCredit.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,21 +535,10 @@ public function postProcess() {
$this->buildACLClause(array('constituentname', 'contact_civireport'));
$sql = $this->buildQuery();

$dao = CRM_Core_DAO::executeQuery($sql);
$rows = $graphRows = array();
$count = 0;
while ($dao->fetch()) {
$row = array();
foreach ($this->_columnHeaders as $key => $value) {
$row[$key] = $dao->$key;
}
$rows[] = $row;
}
$this->formatDisplay($rows);
$this->buildRows($sql, $rows);

// to hide the contact ID field from getting displayed
unset($this->_columnHeaders['civicrm_contact_id_constituent']);
unset($this->_columnHeaders['civicrm_contact_id_creditor']);
$this->formatDisplay($rows);

// assign variables to templates
$this->doTemplateAssignment($rows);
Expand Down

0 comments on commit 741d80c

Please sign in to comment.