Move nasty chunk of code to where it is used
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 19 Sep 2023 10:36:17 +0000 (22:36 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 19 Sep 2023 10:55:57 +0000 (22:55 +1200)
commit1f09cae63a1198bda7bc5812ef5705866c6a794f
tree3ed98fab4d094f0cc129447938cabb42784a490e
parent4f9a3e9211948431b44b8f74e4233c563ab2b9f1
Move nasty chunk of code to where it is used

This code to get the customFields array is tough going. I haven't unravelled it, just moved it from being
figured out in one function & used in another such that it is figured out in the
chunk of code it is used in.

This will probably fix some php 8.2 tests because rather than all tests
hitting it only those that actually have custom fields + receipts do.

It's a bit of a fake win but it will reduce fails & make further cleanup easier
CRM/Event/Form/Participant.php