From 3d8aa9b26081e675cb95e3f21847831107e9b29c Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 1 May 2019 09:11:56 +1000 Subject: [PATCH] Return MailingID rather than ['id'] as id may not always be supplied --- api/v3/Mailing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), -- 2.25.1