From: Diego Muñio Date: Fri, 26 Jun 2020 13:15:12 +0000 (-0300) Subject: Remove url-tracking in mass sms. dev/core#1843 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=62dac3db4e82664c0669911ef05f7bc584d812f9;hp=ec96d3465992fef9782786f03e8fd33d8eceff6d;p=civicrm-core.git Remove url-tracking in mass sms. dev/core#1843 --- 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