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

          [CRM-6067] Custom date fields don't display formatting options in Views interface
          There are no comments yet on this issue.

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Alric J. Althoff

              Dates

              • Created:
                Updated:
                Resolved: