From: Seamus Lee Date: Tue, 30 Apr 2019 23:11:56 +0000 (+1000) Subject: Return MailingID rather than ['id'] as id may not always be supplied X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3d8aa9b26081e675cb95e3f21847831107e9b29c;p=civicrm-core.git Return MailingID rather than ['id'] as id may not always be supplied --- diff --git a/api/v3/Mailing.php b/api/v3/Mailing.php index 29d164ce16..aec00c43d0 100644 --- a/api/v3/Mailing.php +++ b/api/v3/Mailing.php @@ -592,7 +592,7 @@ function civicrm_api3_mailing_preview($params) { ); return civicrm_api3_create_success([ - 'id' => $params['id'], + 'id' => $mailingID, 'contact_id' => $contactID, 'subject' => $mime->headers()['Subject'], 'body_html' => $mime->getHTMLBody(),