Skip to content

Commit

Permalink
Merge pull request #16521 from seamuslee001/dev_core_1489_2
Browse files Browse the repository at this point in the history
dev/core#1489 Include hook_civicrm_managed into the list of upgrade f…
  • Loading branch information
eileenmcnaughton authored Feb 13, 2020
2 parents 03c3ff3 + b5cf569 commit fb3f698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
$upgradeFriendlyHooks = ['civicrm_alterSettingsFolders', 'civicrm_alterSettingsMetaData', 'civicrm_triggerInfo', 'civicrm_alterLogTables', 'civicrm_container', 'civicrm_permission', 'civicrm_managed'];
if (CRM_Core_Config::singleton()->isUpgradeMode() && !in_array($fnSuffix, $upgradeFriendlyHooks)) {
return;
}
Expand Down

0 comments on commit fb3f698

Please sign in to comment.