From: Tim Otten Date: Thu, 8 Jan 2015 00:36:44 +0000 (-0800) Subject: CRM-15578 - crmMailing - Start out with an empty mailing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=13782061e2ee529dd536e226738cffba005435da;p=civicrm-core.git CRM-15578 - crmMailing - Start out with an empty mailing --- diff --git a/js/angular-crmMailing/services.js b/js/angular-crmMailing/services.js index 08681ed110..f002ed5498 100644 --- a/js/angular-crmMailing/services.js +++ b/js/angular-crmMailing/services.js @@ -156,16 +156,16 @@ create: function create() { return { jobs: {}, // {jobId: JobRecord} - name: "revert this", // fixme + name: "", campaign_id: null, from_name: crmFromAddresses.getDefault().author, from_email: crmFromAddresses.getDefault().email, replyto_email: "", - subject: "For {contact.display_name}", // fixme - groups: {include: [2], exclude: [4]}, // fixme + subject: "", + groups: {include: [], exclude: []}, mailings: {include: [], exclude: []}, - body_html: "Hello {contact.display_name}", // fixme - body_text: "Hello {contact.display_name}", // fixme + body_html: "", + body_text: "", footer_id: null, // pickDefaultMailComponent('Footer'), header_id: null, // pickDefaultMailComponent('Header'), visibility: "Public Pages", @@ -257,6 +257,8 @@ // To get list of recipients, we tentatively save the mailing and // get the resulting recipients -- then rollback any changes. var params = angular.extend({}, mailing, { + name: 'placeholder', // for previewing recipients on new, incomplete mailing + subject: 'placeholder', // for previewing recipients on new, incomplete mailing options: {force_rollback: 1}, 'api.mailing_job.create': 1, // note: exact match to API default 'api.MailingRecipients.get': {