// @fixme - this is going to ignore context, better to get conditions, add params, and call PseudoConstant::get
// @fixme - https://lab.civicrm.org/dev/core/issues/547 if CiviContribute not enabled this causes an invalid query
// because $relationTypeId is not set in CRM_Financial_BAO_FinancialType::getIncomeFinancialType()
- if (array_key_exists('CiviEvent', CRM_Core_Component::getEnabledComponents())) {
+ if (array_key_exists('CiviContribute', CRM_Core_Component::getEnabledComponents())) {
return CRM_Financial_BAO_FinancialType::getIncomeFinancialType();
}
return [];