Grant detail report tidy up display
authorAndrew Hunt <andrew@aghstrategies.com>
Fri, 22 Mar 2019 17:26:38 +0000 (13:26 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Fri, 22 Mar 2019 17:26:38 +0000 (13:26 -0400)
CRM/Report/Form/Grant/Detail.php

index f04e12b1b086614f3ed0d2c64bc3ccde812a92b5..458bf557661b465a13d00e2a232165ac2bbe1b40 100644 (file)
@@ -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;
       }