Skip to content

Commit

Permalink
Merge pull request civicrm#16862 from eileenmcnaughton/build
Browse files Browse the repository at this point in the history
[REF] Remove redundant call to build permissions
  • Loading branch information
seamuslee001 authored Mar 20, 2020
2 parents 1bb6e83 + 89af342 commit 4fefe75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -3870,6 +3870,9 @@ public function whereMembershipTypeClause($value, $op) {
* Buld contact acl clause
* @deprecated in favor of buildPermissionClause
*
* Note that if the buildPermissionClause function is called (which most reports do from
* buildQuery then the results of this function are re-calculated and overwritten.
*
* @param string $tableAlias
*/
public function buildACLClause($tableAlias = 'contact_a') {
Expand Down
8 changes: 0 additions & 8 deletions CRM/Report/Form/Contribute/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,14 +741,6 @@ public function statistics(&$rows) {
return $statistics;
}

/**
* Post process function.
*/
public function postProcess() {
$this->buildACLClause($this->_aliases['civicrm_contact']);
parent::postProcess();
}

/**
* Build chart.
*
Expand Down

0 comments on commit 4fefe75

Please sign in to comment.