Skip to content

Commit

Permalink
Merge pull request #20314 from mattwire/contactdetailacl
Browse files Browse the repository at this point in the history
Switch to non deprecated buildPermissionClause() for contact detail report
  • Loading branch information
demeritcowboy authored May 16, 2021
2 parents 0eefdd6 + 6130911 commit 27b1d20
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CRM/Report/Form/Contact/Detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -820,15 +820,10 @@ public function setPager($rowCount = self::ROW_COUNT_LIMIT) {
}

public function postProcess() {

$this->beginPostProcess();

// get the acl clauses built before we assemble the query
$this->buildACLClause($this->_aliases['civicrm_contact']);

$sql = $this->buildQuery(TRUE);

$rows = $graphRows = $this->_contactSelected = [];
$rows = $this->_contactSelected = [];
$this->buildRows($sql, $rows);
foreach ($rows as $key => $val) {
$rows[$key]['contactID'] = $val['civicrm_contact_id'];
Expand Down

0 comments on commit 27b1d20

Please sign in to comment.