Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.6
-
Fix Version/s: 4.4.7
-
Component/s: Drupal Integration Modules
-
Labels:
-
Documentation Required?:None
Description
Hi,
I've encountered issues when using views to display custom fields where amendments have been made to the field labels (in the views UI).
Using Civi 4.4.6, Drupal 7.29, Views 7.x-3.8 with a checkbox field...
Label same as Civi field label: data displays (correct).
Label disabled: data displays without comma separation (incorrect).
Label different from Civi field label: nothing displays (incorrect).
I've also tested on a different site using Civi 4.4.6, Drupal 7.27, Views 7.x-3.8 with a contact reference field...
Label disabled: displays contact ID instead of name (incorrect).
Label different from Civi field label: nothing displays (incorrect).
Label same as Civi field label: contact name displays (correct).
This second site also shows similar problems to the first site with alphanumeric/checkbox and yes-or-no/radio fields.
The second site works correctly on the live version on Civi 4.3.8, Drupal 7.29, Views 7.x-3.8.
I've been unable to replicate the issues on the demo site as I don't have access to views and have already posted on the community forum at: http://forum.civicrm.org/index.php/topic,33617.0.html
Thanks.
Attachments
Issue Links
- is duplicated by
-
CRM-15025 Drupal view CiviCRM custom data options label change
-
- Done/Fixed
-
I've tracked down the cause, by replacing civicrm/drupal/modules/views/ with earlier versions. The problem was introduced between 4.4.3 and 4.4.4 and the culprit appears to be this change:
fixes for
CRM-12956, bug in calculating custom field idhttps://github.com/civicrm/civicrm-drupal/commit/a4deb15852209ae55f41a988d7c88a90eb1fb43e
Replacing drupal/modules/views/civicrm/civicrm_handler_field_custom.inc with the version from 4.4.3 fixes the problem.
CRM-12956doesn't really make clear what the issue is that the above change was trying to fix, but it evidently relies on the field label in Views being the same as the Civi custom field label, which is not generally true.Cheers,
Dave