From 64f6b376999a9ef9da69d845382cd6f40330b2e4 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 15 Oct 2019 07:51:08 +1100 Subject: [PATCH] Do not check for the extension we are trying to download itself --- CRM/Extension/Downloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Extension/Downloader.php b/CRM/Extension/Downloader.php index 285c2bfaab..2e5a19060a 100644 --- a/CRM/Extension/Downloader.php +++ b/CRM/Extension/Downloader.php @@ -93,7 +93,7 @@ class CRM_Extension_Downloader { if ($extensionInfo) { $requiredExtensions = CRM_Extension_System::singleton()->getManager()->findInstallRequirements([$extensionInfo->key], $extensionInfo); foreach ($requiredExtensions as $extension) { - if (CRM_Extension_System::singleton()->getManager()->getStatus($extension) !== CRM_Extension_Manager::STATUS_INSTALLED) { + if (CRM_Extension_System::singleton()->getManager()->getStatus($extension) !== CRM_Extension_Manager::STATUS_INSTALLED && $extension !== $extensionInfo->key) { $errors[] = [ 'title' => ts('Missing Requirement: %1', [1 => $extension]), 'message' => ts('You will not be able to install/upgrade %1 until you have installed the %2 extension.', [1 => $extensionInfo->key, 2 => $extension]), -- 2.25.1