Update send_receipt once actually sent, rather than predicting
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 6 Nov 2023 22:43:55 +0000 (11:43 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 19 Nov 2023 23:13:24 +0000 (12:13 +1300)
commit8166b43f32267bd387ee0fb4fb6b037397f6ced1
tree8397af73c8ce57b9d23eabc7d0057c55455e0902
parent62041afc8d8c0bd914c5e7274e902d925d792454
Update send_receipt once actually sent, rather than predicting

This both ensures that it will be correct if it crashes part way
through and cleans up some code. Note that the 2 places where receive_date
are set are aligned too
CRM/Event/Form/Participant.php
tests/phpunit/CRM/Event/Form/ParticipantTest.php