Remove always true if
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 7 Sep 2023 21:13:26 +0000 (09:13 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 11 Sep 2023 06:48:21 +0000 (18:48 +1200)
commit1348e2a9bb2f57ffae9435492ce0b40d8543a2be
treec867696bbc15fec656f4435985f5116cb0c42275
parentc0da3be211f43debcbcf9e8c3efddcd7c6bb98ea
Remove always true if

This removes an if that is always true

role_id is a required field on the participant form and the register from
search that extends it - so we don't need to check if it is filled out.

In addition we know that it is always an array because that's just the type of field it is.

Removing handling for pre-select 2 makes the code clearer...
CRM/Event/Form/Participant.php