Stop assigning isPrimary at form layer
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 22 Sep 2023 00:23:02 +0000 (12:23 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 22 Sep 2023 00:23:02 +0000 (12:23 +1200)
commit7cc2faa561b2adabd853e7de5d7495ccdf28616f
tree5e310519f9b4c3fbab5a55264528f54b22e73d5f
parent3e4d863f0eb3fcd5ad4786b3b0a70eb288665d80
Stop assigning isPrimary at form layer

Despite the comments we are actually leaning into isPrimary in the templates.

However, the assigning of it is handlied in the Event_WorkflowMessage_ParticipantTrait
- which looks up the value from the record.

Note that there is some test cover of emails for mulitple participants
CRM/Event/Form/Participant.php
CRM/Event/Form/ParticipantFeeSelection.php
CRM/Event/Form/Registration.php
CRM/Event/Form/Registration/Confirm.php