fix: properly assign readonly state to form fields for unavailable services

This commit is contained in:
Björn Fromme
2025-12-11 12:07:19 +01:00
parent f54f66cd32
commit c1539a47f9
14 changed files with 68 additions and 140 deletions
@@ -94,8 +94,8 @@ class ParticipantSkiPassFieldHandler extends AbstractParticipantFieldHandler
// Extract current skipass selection from submitted data
$selectedSkiPass = $this->getFieldValue($submittedData, $this->getFieldName());
// Get available skipasses from travel data (with date filtering)
$availableSkipasses = $bookingDto->travel->getAdditionalServicesBySubTypes(Constants::TOKEN_SKI_PASS, true, true);
// Get all skipasses from travel data (with date filtering)
$availableSkipasses = $bookingDto->travel->getAdditionalServicesBySubTypes(Constants::TOKEN_SKI_PASS, true);
// For single selection, validate the selected skipass and convert ID to Service object
$validSelection = null;