$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();
}
/**
'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])