From 33650a201827579e94ef9d9c7f0f697876aff7e0 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Fri, 17 Oct 2014 19:40:05 -0400 Subject: [PATCH] CRM-15482 - CiviReport - fix ACL clause on Contribution Details w/ soft credits --- CRM/Report/Form/Contribute/Detail.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Form/Contribute/Detail.php b/CRM/Report/Form/Contribute/Detail.php index 6042bda568..19ac2641e1 100644 --- a/CRM/Report/Form/Contribute/Detail.php +++ b/CRM/Report/Form/Contribute/Detail.php @@ -400,8 +400,9 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form { ON temp1_civireport.civicrm_contribution_contribution_id = {$this->_aliases['civicrm_contribution']}.id INNER JOIN civicrm_contribution_soft contribution_soft_civireport ON contribution_soft_civireport.contribution_id = {$this->_aliases['civicrm_contribution']}.id - INNER JOIN civicrm_contact {$this->_aliases['civicrm_contact']} {$this->_aclFrom} - ON {$this->_aliases['civicrm_contact']}.id = contribution_soft_civireport.contact_id"; + INNER JOIN civicrm_contact {$this->_aliases['civicrm_contact']} + ON {$this->_aliases['civicrm_contact']}.id = contribution_soft_civireport.contact_id + {$this->_aclFrom}"; } if (!empty($this->_params['ordinality_value'])) { -- 2.25.1