From 5ba16904d56c96d0ac8abc9b935819ab21af2001 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Tue, 10 Mar 2020 17:08:04 -0400 Subject: [PATCH] dev/core#547 Fix Event financial_type_id getOptions --- CRM/Event/BAO/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index df78a6ac9c..ec04f44f1e 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -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 []; -- 2.25.1