From 99a555a5a33a1bab313e224b6e277def664f83f0 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Fri, 17 Nov 2017 12:45:56 -0500 Subject: [PATCH] CRM-21447: Contact Relationship Report: move variable handling to beginPostProcessCommon(). --- CRM/Report/Form/Contact/Relationship.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CRM/Report/Form/Contact/Relationship.php b/CRM/Report/Form/Contact/Relationship.php index 14dda235ac..5955267d2f 100644 --- a/CRM/Report/Form/Contact/Relationship.php +++ b/CRM/Report/Form/Contact/Relationship.php @@ -646,9 +646,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { $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(); @@ -663,11 +661,16 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { $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); -- 2.25.1