Commit 3d8aa9b2 authored by Seamus Lee's avatar Seamus Lee

Return MailingID rather than ['id'] as id may not always be supplied

parent 640d3ea6
......@@ -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(),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment