From b9471c4e044e5e1c559c36fe11f8ea67b2e321df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 24 Mar 2025 11:03:59 +0100 Subject: [PATCH] fix: make selection of transportation services mandatory --- src/Form/Model/ParticipantData.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Form/Model/ParticipantData.php b/src/Form/Model/ParticipantData.php index e574810..80c4084 100644 --- a/src/Form/Model/ParticipantData.php +++ b/src/Form/Model/ParticipantData.php @@ -40,8 +40,13 @@ class ParticipantData public array $skiPass = []; public array $board = []; public array $rentals = []; + + #[Assert\NotNull(message: 'Bitte angeben')] public ?Service $transportationServiceTo = null; + + #[Assert\NotNull(message: 'Bitte angeben')] public ?Service $transportationServiceFro = null; + public ?Pickup $pickup = null; #[Assert\Callback]