Remove url-tracking in mass sms. dev/core#1843
authorDiego Muñio <muniodiego@gmail.com>
Fri, 26 Jun 2020 13:15:12 +0000 (10:15 -0300)
committerDiego Muñio <muniodiego@gmail.com>
Fri, 26 Jun 2020 13:15:12 +0000 (10:15 -0300)
CRM/Mailing/BAO/Mailing.php

index 8169513e89a136a0bba1ebb65f9b2fe2240ba900..8a1e9529096e79d8cee9ad72191469f7686b6299 100644 (file)
@@ -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