Skip to content

Commit

Permalink
Merge pull request #15343 from colemanw/upgrader
Browse files Browse the repository at this point in the history
Upgrader: handle missing obsolete extensions
  • Loading branch information
seamuslee001 authored Sep 22, 2019
2 parents 164f965 + d3430cf commit 2e4563b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Upgrade/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ public static function disableOldExtensions(CRM_Queue_TaskContext $ctx, $postUpg
$disabled = [];
$manager = CRM_Extension_System::singleton()->getManager();
foreach ($compatInfo as $key => $ext) {
if (!empty($ext['obsolete']) && $manager->getStatus($key) == $manager::STATUS_INSTALLED) {
if (!empty($ext['obsolete']) && in_array($manager->getStatus($key), [$manager::STATUS_INSTALLED, $manager::STATUS_INSTALLED_MISSING])) {
$disabled[$key] = sprintf("<li>%s</li>", ts('The extension %1 is now obsolete and has been disabled.', [1 => $key]));
}
}
Expand Down

0 comments on commit 2e4563b

Please sign in to comment.