Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.1.3
-
Fix Version/s: 3.2
-
Component/s: Drupal Integration Modules
-
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.