CRM-18229 Set up campaign_id on A/B Test Mailing
authorscardinius <scardinius@chords.pl>
Mon, 11 Apr 2016 15:36:57 +0000 (17:36 +0200)
committerscardinius <scardinius@chords.pl>
Mon, 11 Apr 2016 15:36:57 +0000 (17:36 +0200)
ang/crmMailingAB/BlockSetup.html

index bed1989d90393671d2d15fc21d01a8a416fd7dc3..da9b4568efd5086f7747f89bc7da610b4d055780 100644 (file)
@@ -18,7 +18,8 @@
         crm-entityref="{entity: 'Campaign', select: {allowClear: true, placeholder: ts('Select Campaign')}}"
         crm-ui-id="setupForm.campaign"
         name="campaign"
-        ng-model="mailing.campaign_id"
+        ng-model="abtest.mailings.a.campaign_id"
+        ng-change="abtest.mailings.b.campaign_id=abtest.mailings.a.campaign_id"
       />
     </div>
     <div crm-ui-field="{title: ts('Test Type')}" ng-if="fields.testing_criteria">