From 795b276170c72e5f4e65a900c29f8df7e928affd Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 18 Oct 2021 10:35:50 -0400 Subject: [PATCH] show extension name not key --- CRM/Extension/Downloader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Extension/Downloader.php b/CRM/Extension/Downloader.php index 76f4a120bd..db85f4248c 100644 --- a/CRM/Extension/Downloader.php +++ b/CRM/Extension/Downloader.php @@ -75,9 +75,11 @@ class CRM_Extension_Downloader { $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 && $extension !== $extensionInfo->key) { + $requiredExtensionInfo = CRM_Extension_System::singleton()->getBrowser()->getExtension($extension); + $requiredExtensionInfoName = empty($requiredExtensionInfo->name) ? $extension : $requiredExtensionInfo->name; $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]), + 'message' => ts('You will not be able to install/upgrade %1 until you have installed the %2 extension.', [1 => $extensionInfo->name, 2 => $requiredExtensionInfoName]), ]; } } -- 2.25.1