fix: properly assign readonly state to form fields for unavailable services
This commit is contained in:
1 parent
96619c6cec
commit
3984a623bf
14 files changed
+68
-140
No files matched your search
@@ -83,7 +83,7 @@ class ParticipantRentalsFieldHandler extends AbstractParticipantFieldHandler
|
||||
}
|
||||
|
||||
$selectedRentals = $this->getFieldValue($submittedData, $this->getFieldName()) ?? [];
|
||||
$availableRentals = $bookingDto->travel->getAdditionalServicesBySubTypes(Constants::TOKEN_RENTALS, true, true);
|
||||
$availableRentals = $bookingDto->travel->getAdditionalServicesBySubTypes(Constants::TOKEN_RENTALS, true);
|
||||
|
||||
// Filter rentals by skipass duration to ensure only matching rentals are available
|
||||
$durationFilteredRentals = $this->filterRentalsBySkiPassDuration($availableRentals, $participant);
|
||||
|
||||
Reference in new issue
Block a user