From 2422c481c972f3bd251e697efe39ccf2f82a3775 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Fri, 22 Mar 2019 13:26:38 -0400 Subject: [PATCH] Grant detail report tidy up display --- CRM/Report/Form/Grant/Detail.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/CRM/Report/Form/Grant/Detail.php b/CRM/Report/Form/Grant/Detail.php index f04e12b1b0..458bf55766 100644 --- a/CRM/Report/Form/Grant/Detail.php +++ b/CRM/Report/Form/Grant/Detail.php @@ -47,6 +47,8 @@ class CRM_Report_Form_Grant_Detail extends CRM_Report_Form { $contactCols = $this->getColumns('Contact', array( 'order_bys_defaults' => array('sort_name' => 'ASC '), 'fields_defaults' => ['sort_name'], + 'fields_excluded' => ['id'], + 'fields_required' => ['id'], 'filters_defaults' => array('is_deleted' => 0), 'no_field_disambiguation' => TRUE, )); @@ -243,7 +245,7 @@ HERESQL; $this->_absoluteUrl ); $rows[$rowNum]['civicrm_contact_sort_name_link'] = $url; - $rows[$rowNum]['civicrm_contact_sort_name_hover'] = ts("View contact details for this record."); + $rows[$rowNum]['civicrm_contact_sort_name_hover'] = ts("View Contact Summary for this Contact."); $entryFound = TRUE; } @@ -259,18 +261,6 @@ HERESQL; } $entryFound = TRUE; } - if (array_key_exists('civicrm_grant_grant_report_received', $row)) { - if ($value = $row['civicrm_grant_grant_report_received']) { - if ($value == 1) { - $value = 'Yes'; - } - else { - $value = 'No'; - } - $rows[$rowNum]['civicrm_grant_grant_report_received'] = $value; - } - $entryFound = TRUE; - } if (!$entryFound) { break; } -- 2.25.1