CRM-15482 - CiviReport - fix ACL clause on Contribution Details w/ soft credits
authorJon goldberg <jon@palantetech.coop>
Fri, 17 Oct 2014 23:40:05 +0000 (19:40 -0400)
committerJon goldberg <jon@palantetech.coop>
Wed, 22 Oct 2014 12:50:02 +0000 (08:50 -0400)
CRM/Report/Form/Contribute/Detail.php

index 6042bda56899e4f60810f65af06fe6eaaf5c09f1..19ac2641e1dc34d08b1c84be82aaa4ca1144343e 100644 (file)
@@ -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'])) {