CRM-17144 add developer tab to lybunt
authoreileen <emcnaughton@wikimedia.org>
Thu, 8 Oct 2015 21:37:31 +0000 (10:37 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 8 Oct 2015 21:39:23 +0000 (10:39 +1300)
Change-Id: Ifd21ea255bebd6a218eb4693ea7bfa386360f348

CRM/Report/Form/Contribute/Lybunt.php

index 62227a7c1308cfd1124c6a92e6b499d76af118ea..bd8b5489e3f196001bd9c03600f37c3c1ff28949 100644 (file)
@@ -435,7 +435,7 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form {
     $rows = $this->_contactIds = array();
     $this->limit();
     $getContacts = "SELECT SQL_CALC_FOUND_ROWS {$this->_aliases['civicrm_contact']}.id as cid {$this->_from} {$this->_where}  GROUP BY {$this->_aliases['civicrm_contact']}.id {$this->_limit}";
-
+    $this->addToDeveloperTab($getContacts);
     $dao = CRM_Core_DAO::executeQuery($getContacts);
 
     while ($dao->fetch()) {
@@ -449,7 +449,7 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form {
     if (!empty($this->_contactIds) || !empty($this->_params['charts'])) {
       $sql = "{$this->_select} {$this->_from} WHERE {$this->_aliases['civicrm_contact']}.id IN (" . implode(',', $this->_contactIds) . ")
         AND {$this->_aliases['civicrm_contribution']}.is_test = 0 {$this->_statusClause} {$this->_groupBy} ";
-
+      $this->addToDeveloperTab($sql);
       $dao = CRM_Core_DAO::executeQuery($sql);
       $current_year = $this->_params['yid_value'];
       $previous_year = $current_year - 1;