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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user