From a8c06348dd7cf4cdefd90bd84d847d752668b4dd Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 5 Sep 2021 11:00:26 +1200 Subject: [PATCH] Remove deprecated input variable --- CRM/Mailing/BAO/Mailing.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 2e53e4a388..0aba5b5d35 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -1518,7 +1518,6 @@ ORDER BY civicrm_email.is_bulkmail DESC * Form values. * * @param array $params - * @param array $ids * * @return object * $mailing The new mailing object @@ -1526,12 +1525,7 @@ ORDER BY civicrm_email.is_bulkmail DESC * @throws \CRM_Core_Exception * @throws \CiviCRM_API3_Exception */ - public static function create(&$params, $ids = []) { - - if (empty($params['id']) && (array_filter($ids) !== [])) { - $params['id'] = $ids['mailing_id'] ?? $ids['id']; - CRM_Core_Error::deprecatedWarning('Parameter $ids is no longer used by Mailing::create. Use the api or just pass $params'); - } + public static function create(&$params) { // CRM-#1843 // If it is a mass sms, set url_tracking to false -- 2.25.1