From: eileen Date: Thu, 8 Oct 2015 21:37:31 +0000 (+1300) Subject: CRM-17144 add developer tab to lybunt X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e32ac38af12ed9c139e772a77621e07ba430a971;p=civicrm-core.git CRM-17144 add developer tab to lybunt Change-Id: Ifd21ea255bebd6a218eb4693ea7bfa386360f348 --- diff --git a/CRM/Report/Form/Contribute/Lybunt.php b/CRM/Report/Form/Contribute/Lybunt.php index 62227a7c13..bd8b5489e3 100644 --- a/CRM/Report/Form/Contribute/Lybunt.php +++ b/CRM/Report/Form/Contribute/Lybunt.php @@ -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;