Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.2.0
-
Fix Version/s: 2.2.1
-
Component/s: Drupal Integration Modules
-
Labels:None
Description
When creating views based on cvicrm contacts custom datafields are available to play with.
When creating views based on activities, relationships or anything else, custom data fields are not available.
This appears to be down to a function call in view.inc in function:
civicrm_views_custom_data_cache
The line number is 2682:
This is the corrected line
$tree = CRM_Core_BAO_CustomGroup::getTree( $entity_type, CRM_Core_DAO::$_nullObject, null, null, $subType, null);
It appears to fix the problem.