CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Bug in Drupal Views 2 integration
Pages: [1]

Author Topic: Bug in Drupal Views 2 integration  (Read 654 times)

AJA

  • Guest
Bug in Drupal Views 2 integration
April 08, 2010, 02:56:42 pm
Hi there, I just wanted to post bug fixes here for those who may be having and issue with custom date fields loaded through Views. Custom date fields from CiviCRM loaded through Views 2 don't show date format options in the Views interface.
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.

(Posted this here because google indexes this forum (at least better than the bug tracker), making it easier for the victims of such bugs to find the fixes.)

I'll port this on the bug tracker as well.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Bug in Drupal Views 2 integration

This forum was archived on 2017-11-26.