Skip to content
This repository was archived by the owner on Feb 23, 2020. It is now read-only.

Commit a82f7cd

Browse files
committed
Removed registrant quantity requirement. Now enforced by event settings.
1 parent 27d45bd commit a82f7cd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Form/RegistrationForm.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ public function validateForm(array &$form, FormStateInterface $form_state) {
170170
}
171171
}
172172

173-
if (count($registrants_after) == 0) {
174-
$form_state->setError($form['people']['registrants'], $this->t('There must be at least one registrant.'));
175-
}
176-
177173
$form_state->set('registrants_after', $registrants_after);
178174
$form_state->set('registrants_delete', $registrants_delete);
179175

0 commit comments

Comments
 (0)