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

Custom date fields don't display formatting options in Views interface

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.2
    • Labels:
      None

      Description

      Custom date fields from CiviCRM loaded through Views 2 don't show date format options in the Views interface.
      Preliminary fix: change line 4770 of civicrm/drupal/modules/views/civicrm.views.inc from

      $customHTMLTypes = array( 'Select', 'Multi-Select', 'AdvMulti-Select', 'Radio', 'CheckBox', 'Select Date', 'Select State/Province', 'Select Country', 'Multi-Select Country',

      to

      $customHTMLTypes = array( 'Select', 'Multi-Select', 'AdvMulti-Select', 'Radio', 'CheckBox', 'Select State/Province', 'Select Country', 'Multi-Select Country',

      Reasoning: Date select ('Select Date') 'elements should not be handed off to the civicrm_handler_field_custom function, but should rather be allowed through the civicrm_get_field_handler function which will then determine their proper type (date) and the appropriate handler.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              aja Alric J. Althoff
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: