Skip to content

Commit

Permalink
Merge pull request #21372 from eileenmcnaughton/ddep
Browse files Browse the repository at this point in the history
Remove deprecated input variable
  • Loading branch information
colemanw authored Sep 5, 2021
2 parents 7fb7d6b + a8c0634 commit 41c0455
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CRM/Mailing/BAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -1485,20 +1485,14 @@ public static function add(&$params, $ids = []) {
* Form values.
*
* @param array $params
* @param array $ids
*
* @return object
* $mailing The new mailing object
*
* @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
Expand Down

0 comments on commit 41c0455

Please sign in to comment.