Merge pull request #20872 from eileenmcnaughton/fprocessor
[civicrm-core.git] / api / v3 / MailingAB.php
index a8c96ab80a9abb7b09c4aa5f4a8dc3f05de63721..1c70fab2f8bc7b640b36c44c5d1f1facc21a8d41 100644 (file)
@@ -23,6 +23,7 @@ function _civicrm_api3_mailing_a_b_create_spec(&$spec) {
   $spec['created_date']['api.default'] = 'now';
   $spec['created_id']['api.required'] = 1;
   $spec['created_id']['api.default'] = 'user_contact_id';
+  $spec['domain_id']['api.default'] = CRM_Core_Config::domainID();
 }
 
 /**
@@ -195,6 +196,9 @@ function _civicrm_api3_mailing_a_b_fill_winner($winner_id, $final_id) {
     'reply_id',
     'resubscribe_id',
     'unsubscribe_id',
+    'template_type',
+    'template_options',
+    'language',
   ];
   $f = CRM_Utils_SQL_Select::from('civicrm_mailing')
     ->where('id = #id', ['id' => $winner_id])