Unverified Commit 96269aef authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub

Merge pull request #16743 from mlutfy/dev547c

#547 Fix Event financial_type_id getOptions
parents e0ef69fd 5ba16904
......@@ -2351,7 +2351,7 @@ LEFT JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field
// @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 [];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment