CRM-14857 - fix indenting.
authorDave Greenberg <dave@civicrm.org>
Thu, 26 Jun 2014 19:07:56 +0000 (12:07 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 26 Jun 2014 19:07:56 +0000 (12:07 -0700)
----------------------------------------
* CRM-14857:
  https://issues.civicrm.org/jira/browse/CRM-14857

CRM/Report/Form.php

index e099e9972c9063fc84d6f8539d09fea851b9f5f0..28bc53da0f4a1678722099f521d4a7648eea8d6f 100644 (file)
@@ -2995,14 +2995,14 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
     
     $tmp_membership_org_sql_list = implode(', ', $value);
     return " {$this->_aliases['civicrm_contact']}.id {$sqlOp} (
-                          SELECT DISTINCT mem.contact_id
-                                         FROM civicrm_membership mem 
-                                         LEFT JOIN civicrm_membership_status mem_status ON mem.status_id = mem_status.id
-                                         LEFT JOIN civicrm_membership_type mt ON mem.membership_type_id = mt.id 
-                                         WHERE mt.member_of_contact_id IN (".$tmp_membership_org_sql_list.")
-                                         AND mt.is_active = '1'
-                                         AND mem_status.is_current_member = '1'
-                                 AND mem_status.is_active = '1' )  ";
+                                                                                                       SELECT DISTINCT mem.contact_id
+                                                                                                       FROM civicrm_membership mem 
+                                                                                                       LEFT JOIN civicrm_membership_status mem_status ON mem.status_id = mem_status.id
+                                                                                                       LEFT JOIN civicrm_membership_type mt ON mem.membership_type_id = mt.id 
+                                                                                                       WHERE mt.member_of_contact_id IN (".$tmp_membership_org_sql_list.")
+                                                                                                       AND mt.is_active = '1'
+                                                                                                       AND mem_status.is_current_member = '1'
+                                                                                                       AND mem_status.is_active = '1' )  ";
     }    
 
   function whereMembershipTypeClause($field, $value, $op) {
@@ -3013,14 +3013,14 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
       
     $tmp_membership_sql_list  = implode(', ', $value);
     return " {$this->_aliases['civicrm_contact']}.id {$sqlOp} (
-                          SELECT DISTINCT mem.contact_id
-                                                                         FROM civicrm_membership mem 
-                                                                         LEFT JOIN civicrm_membership_status mem_status ON mem.status_id = mem_status.id 
-                                                                         LEFT JOIN civicrm_membership_type mt ON mem.membership_type_id = mt.id 
-                                                                         WHERE mem.membership_type_id IN (".$tmp_membership_sql_list.")
-                                                                         AND mt.is_active = '1'
-                                                                 AND mem_status.is_current_member = '1'
-                                                                         AND mem_status.is_active = '1' ) ";
+                                                                                                       SELECT DISTINCT mem.contact_id
+                                                                                                       FROM civicrm_membership mem 
+                                                                                                       LEFT JOIN civicrm_membership_status mem_status ON mem.status_id = mem_status.id 
+                                                                                                       LEFT JOIN civicrm_membership_type mt ON mem.membership_type_id = mt.id 
+                                                                                                       WHERE mem.membership_type_id IN (".$tmp_membership_sql_list.")
+                                                                                                       AND mt.is_active = '1'
+                                                                                                       AND mem_status.is_current_member = '1'
+                                                                                                       AND mem_status.is_active = '1' ) ";
   }
     
   /**