fix: properly assign selected pickups
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user