fix: properly handle parking service selection
This commit is contained in:
@@ -115,7 +115,7 @@ class ParticipantServiceProcessor
|
||||
* Collects additional services from a participant for mapping.
|
||||
*
|
||||
* Extracts all additional services (courses, board, rentals, ski pass, rental insurance,
|
||||
* additional services) from a participant into a flat array of Service objects.
|
||||
* parking, additional services) from a participant into a flat array of Service objects.
|
||||
*
|
||||
* @param ParticipantDto $participant The participant data
|
||||
*
|
||||
@@ -140,6 +140,11 @@ class ParticipantServiceProcessor
|
||||
$services[] = $participant->rentalInsurance;
|
||||
}
|
||||
|
||||
// Add parking service if selected (for self-organized PKW transportation)
|
||||
if (true === $participant->parking && null !== $participant->parkingService) {
|
||||
$services[] = $participant->parkingService;
|
||||
}
|
||||
|
||||
return $services;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user