CRM-15578 - Mailing API - Fix bug with resaving mailings
authorTim Otten <totten@civicrm.org>
Wed, 18 Feb 2015 18:03:26 +0000 (10:03 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 18 Feb 2015 18:03:26 +0000 (10:03 -0800)
commitd8e9212d100a1bf590ea61121dc569086c21fb4d
tree42bed0c7ff9696b3b322c03fe8d510bfe8361509
parentf3cd0975885d5c3b5d6ea2a15f2f9675d5691a88
CRM-15578 - Mailing API - Fix bug with resaving mailings

The bug manifested as failure to validate the required tokens. When
submitting (resaving with scheduled_date, etal), the BAO's create() function
incorrectly applied defaults and overwrote the value of footer_id (among
others) -- which subsequently caused checkSendable() to fail.
CRM/Mailing/BAO/Mailing.php
tests/phpunit/api/v3/MailingTest.php