Details
Description
CRM_Mailing_BAO_Mailing:create is called in the CRM_Mailing_Form_Schedule which is the final step in the mailing process.
CRM_Mailing_BAO_Mailing:create has been changed to allow for mailings to be created through the API with default settings, however, since the same function is used for this as in Schedule.php, the result is to overwrite all mailing settings with the default settings for any mailing prepared using the standard civimail GUI.
Suggesting that the new code added to CRM_Mailing_BAO_Mailing:create be put inside an if statement that is only activated if the function is called by the API. I'm not familiar at all with the API development, so I don't know if this is the best way or not. I'll wait for comments.