From 7d3bbef21122eb9d8354831584c7a2ed67946009 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 1 May 2019 09:57:21 +1200 Subject: [PATCH] Enotice fix The check is looking for status at the wrong level in the array --- CRM/Utils/Check/Component/FinancialTypeAcls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Check/Component/FinancialTypeAcls.php b/CRM/Utils/Check/Component/FinancialTypeAcls.php index b641a6b884..4598c97f34 100644 --- a/CRM/Utils/Check/Component/FinancialTypeAcls.php +++ b/CRM/Utils/Check/Component/FinancialTypeAcls.php @@ -36,7 +36,7 @@ class CRM_Utils_Check_Component_FinancialTypeAcls extends CRM_Utils_Check_Compon $messages = []; $ftAclSetting = Civi::settings()->get('acl_financial_type'); $financialAclExtension = civicrm_api3('extension', 'get', ['key' => 'biz.jmaconsulting.financialaclreport']); - if ($ftAclSetting && (($financialAclExtension['count'] == 1 && $financialAclExtension['status'] != 'Installed') || $financialAclExtension['count'] !== 1)) { + if ($ftAclSetting && (($financialAclExtension['count'] == 1 && $financialAclExtension['values'][0]['status'] != 'Installed') || $financialAclExtension['count'] !== 1)) { $messages[] = new CRM_Utils_Check_Message( __FUNCTION__, ts('CiviCRM will in the future require the extension %1 for CiviCRM Reports to work correctly with the Financial Type ACLs. The extension can be downloaded here', [ -- 2.25.1