Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.7, 4.5.5
-
Fix Version/s: 4.7
-
Component/s: Drupal Integration Modules
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
The CiviCRM Views code for Contacts does not describe the core field "deceased_date". This prevents someone from using a Contact-type Drupal view from using the standard options for formatting the date layout in the view.
To work-around the issue, I edited the file "civicrm/drupal/modules/views/components/civicrm.core.inc"
I added the following section just after the "birth_date" section:
$data['civicrm_contact']['deceased_date'] = array(
'title' => t('Deceased Date'),
'help' => t('The contact\'s deceased date.'),
'field' => array(
'handler' => 'civicrm_handler_field_datetime',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'civicrm_handler_filter_datetime',
'is date' => TRUE,
),
'sort' => array(
'handler' => 'civicrm_handler_sort_date',
),
);