From 40710c897160b931c2a397a56c9388eecad60e3a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 14 Dec 2023 20:19:44 +1300 Subject: [PATCH] Do not call core function from extension --- ext/financialacls/financialacls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/financialacls/financialacls.php b/ext/financialacls/financialacls.php index 494d8b58b4..3202d32654 100644 --- a/ext/financialacls/financialacls.php +++ b/ext/financialacls/financialacls.php @@ -458,7 +458,7 @@ function financialacls_civicrm_links(string $op, ?string $objectName, $objectID, } if ($objectName === 'Contribution') { // Now check for lineItems - if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()) { + if (Civi::settings()->get('acl_financial_type')) { $lineItems = CRM_Price_BAO_LineItem::getLineItemsByContributionID((int) $objectID); foreach ($lineItems as $item) { $financialType = CRM_Core_PseudoConstant::getName('CRM_Contribute_BAO_Contribution', 'financial_type_id', $item['financial_type_id']); -- 2.25.1