From a6ee76f8e96b9b0b9e71c267502a0b6bcc8fac8c Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 7 Apr 2020 03:16:44 +0100 Subject: [PATCH] Fixed fatal error for class not found when managed hook is invoked during upgrade --- CRM/Utils/Hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 0d09ab914bfc..0e00954e9827 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -160,7 +160,7 @@ public function invoke( // Instead of not calling any hooks we only call those we know to be frequently important - if a particular extension wanted // to avoid this they could do an early return on CRM_Core_Config::singleton()->isUpgradeMode // Futther discussion is happening at https://lab.civicrm.org/dev/core/issues/1460 - $upgradeFriendlyHooks = ['civicrm_alterSettingsFolders', 'civicrm_alterSettingsMetaData', 'civicrm_triggerInfo', 'civicrm_alterLogTables', 'civicrm_container', 'civicrm_permission', 'civicrm_managed']; + $upgradeFriendlyHooks = ['civicrm_alterSettingsFolders', 'civicrm_alterSettingsMetaData', 'civicrm_triggerInfo', 'civicrm_alterLogTables', 'civicrm_container', 'civicrm_permission', 'civicrm_managed', 'civicrm_config']; if (CRM_Core_Config::singleton()->isUpgradeMode() && !in_array($fnSuffix, $upgradeFriendlyHooks)) { return; }