When you navigate to "New Mailing" (`civicrm/a/#/mailing/new`) in the UI, it
crashes on a white-screen. Inspecting the console shows that the call to
`Mailing.create` is failing because `subject` is missing. But at this point
we're only creating a *draft* mailing -- so you don't have or need a
fully-formed mailing yet.
*/
function _civicrm_api3_mailing_create_spec(&$params) {
$params['created_id']['api.default'] = 'user_contact_id';
- $params['subject']['api.required'] = TRUE;
$params['override_verp']['api.default'] = !CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::MAILING_PREFERENCES_NAME, 'track_civimail_replies');
$params['visibility']['api.default'] = 'Public Pages';