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
@@ -50,13 +50,12 @@ class ParticipantTransportationInboundFieldHandler extends AbstractParticipantFi
|
||||
|
||||
$selectedTransportation = $this->getFieldValue($submittedData, $this->getFieldName());
|
||||
|
||||
// Get available inbound transportation services
|
||||
$availableServices = $bookingDto->travel->getTransportationServicesByDirection(
|
||||
DirectionMapper::INBOUND_TRAVEL,
|
||||
true // filter available
|
||||
// Get all inbound transportation services (availability filtering happens at form level)
|
||||
$services = $bookingDto->travel->getTransportationServicesByDirection(
|
||||
DirectionMapper::INBOUND_TRAVEL
|
||||
);
|
||||
|
||||
// Validate and update participant with selection
|
||||
$participant->transportationInbound = $this->findItemById($selectedTransportation, $availableServices);
|
||||
$participant->transportationInbound = $this->findItemById($selectedTransportation, $services);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user