diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index 9ba5d4ce09e3..bee6f4c036e7 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -760,6 +760,10 @@ public static function addComponentFields(&$fields, $mappingType, $exportMode) { } } if (($mappingType == 'Search Builder') || ($exportMode == CRM_Export_Form_Select::GRANT_EXPORT)) { + echo "checking class:\n"; + var_dump(class_exists('CRM_Grant_BAO_Grant')); + echo "checking method:\n"; + var_dump(method_exists('CRM_Grant_BAO_Grant', 'exportableFields')); if (method_exists('CRM_Grant_BAO_Grant', 'exportableFields') && CRM_Core_Permission::check('access CiviGrant')) { $fields['Grant'] = CRM_Grant_BAO_Grant::exportableFields(); unset($fields['Grant']['grant_contact_id']);