From 62dac3db4e82664c0669911ef05f7bc584d812f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Mu=C3=B1io?= Date: Fri, 26 Jun 2020 10:15:12 -0300 Subject: [PATCH] Remove url-tracking in mass sms. dev/core#1843 --- CRM/Mailing/BAO/Mailing.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 8169513e89..8a1e952909 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -1528,6 +1528,12 @@ ORDER BY civicrm_email.is_bulkmail DESC \Civi::log('Parameter $ids is no longer used by Mailing::create. Use the api or just pass $params', ['civi.tag' => 'deprecated']); } + // CRM-#1843 + // If it is a mass sms, set url_tracking to false + if (!empty($params['sms_provider_id'])) { + $params['url_tracking'] = 0; + } + // CRM-12430 // Do the below only for an insert // for an update, we should not set the defaults -- 2.25.1