Adding [CiviMail Draft] on test mailing (for mosaico)
authorSamuel Vanhove <samuel@symbiotic.coop>
Fri, 31 Aug 2018 19:54:35 +0000 (15:54 -0400)
committerSamuel Vanhove <samuel@symbiotic.coop>
Fri, 31 Aug 2018 19:54:35 +0000 (15:54 -0400)
ang/crmMailing/services.js

index 45c206373230e3a0002834b5ec657f8b7a4d0ed2..2c4d6e203ada423d33a7775e7c4d3378f4b22ce3 100644 (file)
           }
         });
 
+        // clearly indicates that it's a draft mailing
+        params.subject = ts('[CiviMail Draft]') + ' ' + params.subject;
+
         // WORKAROUND: Mailing.create (aka CRM_Mailing_BAO_Mailing::create()) interprets scheduled_date
         // as an *intent* to schedule and creates tertiary records. Saving a draft with a scheduled_date
         // is therefore not allowed. Remove this after fixing Mailing.create's contract.