From: Pradeep Nayak Date: Fri, 21 Aug 2015 19:30:47 +0000 (+0530) Subject: --CRM-16506, code cleanup, removed cruft code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f9885284102f26f4380c6fb23960d4bce65cbf9c;p=civicrm-core.git --CRM-16506, code cleanup, removed cruft code --- diff --git a/CRM/Report/Form/Mailing/Summary.php b/CRM/Report/Form/Mailing/Summary.php index f67edfbffa..2a98d2df46 100644 --- a/CRM/Report/Form/Mailing/Summary.php +++ b/CRM/Report/Form/Mailing/Summary.php @@ -602,34 +602,6 @@ class CRM_Report_Form_Mailing_Summary extends CRM_Report_Form { public function alterDisplay(&$rows) { $entryFound = FALSE; foreach ($rows as $rowNum => $row) { - // make count columns point to detail report - // convert display name to links - if (array_key_exists('civicrm_contact_display_name', $row) && - array_key_exists('civicrm_contact_id', $row) - ) { - $url = CRM_Report_Utils_Report::getNextUrl('contact/detail', - 'reset=1&force=1&id_op=eq&id_value=' . $row['civicrm_contact_id'], - $this->_absoluteUrl, $this->_id, $this->_drilldownReport - ); - $rows[$rowNum]['civicrm_contact_display_name_link'] = $url; - $rows[$rowNum]['civicrm_contact_display_name_hover'] = ts("View Contact details for this contact."); - $entryFound = TRUE; - } - - // handle country - if (array_key_exists('civicrm_address_country_id', $row)) { - if ($value = $row['civicrm_address_country_id']) { - $rows[$rowNum]['civicrm_address_country_id'] = CRM_Core_PseudoConstant::country($value, FALSE); - } - $entryFound = TRUE; - } - if (array_key_exists('civicrm_address_state_province_id', $row)) { - if ($value = $row['civicrm_address_state_province_id']) { - $rows[$rowNum]['civicrm_address_state_province_id'] = CRM_Core_PseudoConstant::stateProvince($value, FALSE); - } - $entryFound = TRUE; - } - // skip looking further in rows, if first row itself doesn't // have the column we need if (!$entryFound) {