Merge pull request #16901 from eileenmcnaughton/settings
[civicrm-core.git] / ang / crmMailingAB / BlockSetup.html
index bed1989d90393671d2d15fc21d01a8a416fd7dc3..7d124cc06ccc8263078c6c6ff7ce9f836c91aa1d 100644 (file)
@@ -4,7 +4,7 @@
       {{ts('A/B testing allows you to send two test mailings to a random subset of your recipients. After collecting and comparing metrics, the more successful mailing will be sent to the remaining recipients.')}}
     </div>
     <div crm-ui-field="{name: 'setupForm.abName', title: ts('Name'), help: hs('name')}" ng-if="fields.abName">
-      <input
+      <input type="text"
         crm-ui-id="setupForm.abName"
         name="abName"
         ng-model="abtest.ab.name"
@@ -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">