From 2cd169182039288de30a11b6710fc7fce5f8f5df Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 2 Feb 2022 20:42:24 -0500 Subject: [PATCH] CiviMail - Remove deprecated variable only used by Mosaico Depends on the release of https://github.com/veda-consulting-company/uk.co.vedaconsulting.mosaico/pull/481 --- CRM/Mailing/Info.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index c670df0d96..accfc60089 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -50,11 +50,6 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { 'options' => ['limit' => 0], 'sequential' => 1, ]; - $groupNames = civicrm_api3('Group', 'get', $params + [ - 'is_active' => 1, - 'check_permissions' => TRUE, - 'return' => ['title', 'visibility', 'group_type', 'is_hidden'], - ]); $headerfooterList = civicrm_api3('MailingComponent', 'get', $params + [ 'is_active' => 1, 'return' => [ @@ -97,8 +92,6 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { 'civiMails' => [], 'campaignEnabled' => in_array('CiviCampaign', $config->enableComponents), 'groupNames' => [], - // @todo this is not used in core. Remove once Mosaico no longer depends on it. - 'testGroupNames' => $groupNames['values'], 'headerfooterList' => $headerfooterList['values'], 'mesTemplate' => $mesTemplate['values'], 'emailAdd' => $emailAdd['values'], -- 2.25.1