From: Mathieu Lutfy Date: Fri, 17 Nov 2017 17:45:56 +0000 (-0500) Subject: CRM-21447: Contact Relationship Report: move variable handling to beginPostProcessCom... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=99a555a5a33a1bab313e224b6e277def664f83f0;p=civicrm-core.git CRM-21447: Contact Relationship Report: move variable handling to beginPostProcessCommon(). --- 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);