From d57cea27a06b2d0c46bac1d740cf542e448189ba Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 23 Jun 2023 11:45:12 -0700 Subject: [PATCH] civicrm/mailing/queue - Remove hidden/obsolete sender This route was an old-school, hidden way to send a mail-blast immediately. Now-a-days, the same use-case would be addressed by something like: 1. Go to API Explorer and run `Job.process_mailing` 2. Go to CLI and run `Job.process_mailing` --- CRM/Mailing/Page/Browse.php | 11 +---------- CRM/Mailing/xml/Menu/Mailing.xml | 7 ------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/CRM/Mailing/Page/Browse.php b/CRM/Mailing/Page/Browse.php index 9b938b0328..c8d1344ee6 100644 --- a/CRM/Mailing/Page/Browse.php +++ b/CRM/Mailing/Page/Browse.php @@ -116,16 +116,7 @@ class CRM_Mailing_Page_Browse extends CRM_Core_Page { public function run() { $this->preProcess(); - $newArgs = func_get_args(); - // since we want only first function argument - $newArgs = $newArgs[0]; - $this->_isArchived = $this->isArchived($newArgs); - if (isset($_GET['runJobs']) || CRM_Utils_Array::value('2', $newArgs) == 'queue') { - $mailerJobSize = Civi::settings()->get('mailerJobSize'); - CRM_Mailing_BAO_MailingJob::runJobs_pre($mailerJobSize); - CRM_Mailing_BAO_MailingJob::runJobs(); - CRM_Mailing_BAO_MailingJob::runJobs_post(); - } + $newArgs = func_get_args()[0]; $this->_sortByCharacter = CRM_Utils_Request::retrieve('sortByCharacter', 'String', $this); diff --git a/CRM/Mailing/xml/Menu/Mailing.xml b/CRM/Mailing/xml/Menu/Mailing.xml index 3c4446704f..34dcdaabff 100644 --- a/CRM/Mailing/xml/Menu/Mailing.xml +++ b/CRM/Mailing/xml/Menu/Mailing.xml @@ -159,13 +159,6 @@ true 685 - - civicrm/mailing/queue - Sending Mail - CRM_Mailing_Page_Browse - access CiviMail - 690 - civicrm/mailing/report/event Mailing Event -- 2.25.1