Skip to content

Commit

Permalink
Merge pull request #15515 from eileenmcnaughton/event_flow
Browse files Browse the repository at this point in the history
[REF] remove obsolete code.
  • Loading branch information
colemanw authored Oct 15, 2019
2 parents c81b066 + ecdfa87 commit 613ec72
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions CRM/Event/Form/Registration/AdditionalParticipant.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,32 +180,6 @@ public function buildQuickForm() {
if ($this->_values['event']['is_monetary']) {
CRM_Event_Form_Registration_Register::buildAmount($this);
}
$first_name = $last_name = NULL;
$pre = $post = [];
foreach ([
'pre',
'post',
] as $keys) {
if (isset($this->_values['additional_custom_' . $keys . '_id'])) {
$this->buildCustom($this->_values['additional_custom_' . $keys . '_id'], 'additionalCustom' . ucfirst($keys));
$$keys = CRM_Core_BAO_UFGroup::getFields($this->_values['additional_custom_' . $keys . '_id']);
}
foreach ([
'first_name',
'last_name',
] as $name) {
if (array_key_exists($name, $$keys) &&
CRM_Utils_Array::value('is_required', CRM_Utils_Array::value($name, $$keys))
) {
$$name = 1;
}
}
}

$required = ($button == 'skip' ||
$this->_values['event']['allow_same_participant_emails'] == 1 &&
($first_name && $last_name)
) ? FALSE : TRUE;

//add buttons
$js = NULL;
Expand Down

0 comments on commit 613ec72

Please sign in to comment.