fix: properly assign selected pickups

This commit is contained in:
Björn Fromme
2025-03-24 15:24:40 +01:00
parent b9471c4e04
commit 7045974451
2 changed files with 2 additions and 2 deletions
@@ -46,7 +46,7 @@ class BookingDataProcessor
} }
$bookingData->transportationServices[$service->id]->mapping[] = $participant->index; $bookingData->transportationServices[$service->id]->mapping[] = $participant->index;
} }
if ('BUS' === $participant->transportationServiceTo->subType && null !== $selectedPickup = $participant->pickupTo) { if ('BUS' === $participant->transportationServiceTo->subType && null !== $selectedPickup = $participant->pickup) {
if (false === isset($bookingData->pickupsTo[$selectedPickup->id])) { if (false === isset($bookingData->pickupsTo[$selectedPickup->id])) {
$bookingData->pickupsTo[$selectedPickup->id] = $selectedPickup; $bookingData->pickupsTo[$selectedPickup->id] = $selectedPickup;
} }
+1 -1
View File
@@ -45,7 +45,7 @@ class BookingData
->getTransportationServiceForParticipantAndDirection($index, 'H'); ->getTransportationServiceForParticipantAndDirection($index, 'H');
$participantData->transportationServiceFro = $booking $participantData->transportationServiceFro = $booking
->getTransportationServiceForParticipantAndDirection($index, 'R'); ->getTransportationServiceForParticipantAndDirection($index, 'R');
$participantData->pickupTo = $booking->getPickupForParticipant($index); $participantData->pickup = $booking->getPickupForParticipant($index);
} }
$instance->participants[$index] = $participantData; $instance->participants[$index] = $participantData;