From afdd30b52dc476589a954d65342163a9a6712e93 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 1 May 2017 19:01:41 -0700 Subject: [PATCH] CRM-20316 - Fix "New Mailing" regression. `subject` should not be required. 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. --- api/v3/Mailing.php | 1 - 1 file changed, 1 deletion(-) diff --git a/api/v3/Mailing.php b/api/v3/Mailing.php index ae0a246cf8..a8ee98d5f8 100644 --- a/api/v3/Mailing.php +++ b/api/v3/Mailing.php @@ -134,7 +134,6 @@ function _civicrm_api3_mailing_gettokens_spec(&$params) { */ 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'; -- 2.25.1