Skip to content

Commit

Permalink
CRM-21447: Contact Relationship Report: move variable handling to beg…
Browse files Browse the repository at this point in the history
…inPostProcessCommon().
  • Loading branch information
mlutfy committed Nov 17, 2017
1 parent a393337 commit 99a555a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CRM/Report/Form/Contact/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,7 @@ public function groupBy() {
$this->_groupBy = CRM_Contact_BAO_Query::getGroupByFromSelectColumns($this->_selectClauses, $groupBy);
}

public function postProcess() {
$this->beginPostProcess();

public function beginPostProcessCommon() {
$originalRelationshipTypeIdValue = CRM_Utils_Array::value('relationship_type_id_value', $this->_params);
if ($originalRelationshipTypeIdValue) {
$relationshipTypes = array();
Expand All @@ -663,11 +661,16 @@ public function postProcess() {
$this->relationType = $direction[0];
$this->_params['relationship_type_id_value'] = $relationshipTypes;
}
}

public function postProcess() {
$this->beginPostProcess();

$this->buildACLClause(array(
$this->_aliases['civicrm_contact'],
$this->_aliases['civicrm_contact_b'],
));

$sql = $this->buildQuery();
$this->buildRows($sql, $rows);

Expand Down

0 comments on commit 99a555a

Please sign in to comment.