Add default receive_date for contributions at BAO level
authoreileen <emcnaughton@wikimedia.org>
Thu, 6 Jun 2019 13:09:47 +0000 (01:09 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 6 Jun 2019 13:09:47 +0000 (01:09 +1200)
commitffc9d3b2d17571d487c255abcfdf3cf2ef868365
treea34b864bae40049c457acc3c949b973e8805133e
parent9df8d506c6fd270079f4b916cd948831d8b38121
Add default receive_date for contributions at BAO level

I found that CRM_Contribute_Page_AjaxTest actually fails if run in isolation - obviously 'something' is
helping it out when run together but in isolation the receive_date is missing on the contribution
which causes an error when it goes to save financial item. (There was a similar test issue recently
that turned out to impact form users - this solves the issue deeper down. The default is only applied
if id is not present
CRM/Contribute/BAO/Contribution.php