Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Feb 7, 2022
1 parent a58d853 commit e1f0a28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Core/BAO/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit e1f0a28

Please sign in to comment.