Skip to content

Commit

Permalink
Merge pull request #11293 from mlutfy/crm21447
Browse files Browse the repository at this point in the history
CRM-21447: Relationship Report: move variable handling to beginPostProcessCommon
  • Loading branch information
eileenmcnaughton authored Nov 17, 2017
2 parents 0c3256a + 99a555a commit 788e77e
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 788e77e

Please sign in to comment.