Merge pull request #11929 from civicrm/5.0
[civicrm-core.git] / api / v3 / Mailing.php
index 22aba4bfda3965edab0f1086170a404f08e139f5..32c3fe1a33b635ef80261f244dcf6fd95bce39d2 100644 (file)
@@ -77,7 +77,7 @@ function civicrm_api3_mailing_create($params) {
 
   // FlexMailer is a refactoring of CiviMail which provides new hooks/APIs/docs. If the sysadmin has opted to enable it, then use that instead of CiviMail.
   $safeParams['_evil_bao_validator_'] = \CRM_Utils_Constant::value('CIVICRM_FLEXMAILER_HACK_SENDABLE', 'CRM_Mailing_BAO_Mailing::checkSendable');
-  $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $safeParams);
+  $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $safeParams, 'Mailing');
   return _civicrm_api3_mailing_get_formatResult($result);
 }