Fix offline event form validation bug when switching events
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 4 Sep 2023 06:51:05 +0000 (18:51 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 4 Sep 2023 07:03:05 +0000 (19:03 +1200)
commit73e5d3d3694d75cdf94d57c9c4dbffb264c61f58
tree44c75602c339d61136aa3607a848c8200c73074d
parent79b8637ffaf4f00ff2dae6234f2134a1c3adaf18
Fix offline event form validation bug when switching events

Steps to reproduce

1) do a new offline event registration
2) do a second offline event registration for the same participant. The form
will not submit as the participant is already registered. However it will store
the hidden 'priceSetId' field on the form.
2) change the event & submit the form
- > validation fails as the fields for the original event were not present

I don't think this has regressed - it's just obscure
CRM/Event/Form/Participant.php