Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15800

CiviCRM View handler omits core field "deceased_date"

    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
    • 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',
      ),
      );

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              sgladstone Sarah Gladstone
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: