Respect form value for register_date on partipant form
authoreileen <emcnaughton@wikimedia.org>
Fri, 31 Jan 2020 04:45:06 +0000 (17:45 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 31 Jan 2020 04:46:55 +0000 (17:46 +1300)
commit51c6ef2b767a0efab17ba91ef6c515f32f387792
treeec4ce4338ad2ea8be2c720f74f035faeeb54488b
parent7e15e0d1233447bd1624a996e8ec5bcafff4d9e9
Respect form value for register_date on partipant form

The backoffice event registration form has a register_date field. In credit card mode it
does an awful lot of handling which is mostly for legacy code reasons but the net result is to ignore it
& set it to now. However, the field defaults to now & if someone actually changed it they would expect their change to
be respected. This removes that handling & just uses the field value entered. The field is always present from my
digging
CRM/Event/Form/Participant.php
tests/phpunit/CRM/Event/Form/ParticipantTest.php