Skip to content

Commit a977078

Browse files
committed
minor #156 ensure that submitted dates are valid choices (xabbuh)
This PR was merged into the 0.3-dev branch. Discussion ---------- ensure that submitted dates are valid choices Commits ------- d243d10 ensure that submitted dates are valid choices
2 parents aa0c861 + d243d10 commit a977078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Fixtures/Form/CancelSubscriptionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CancelSubscriptionType extends AbstractType
2626
public function buildForm(FormBuilderInterface $builder, array $options): void
2727
{
2828
$builder
29-
->add('cancellation_date', DateType::class, $options['cancellation_date_options'] + ['widget' => 'choice'])
29+
->add('cancellation_date', DateType::class, $options['cancellation_date_options'] + ['widget' => 'choice', 'years' => range(2015, 2025)])
3030
;
3131
}
3232

0 commit comments

Comments
 (0)