feat: always load fresh api data when starting to edit booking
This commit is contained in:
@@ -233,7 +233,8 @@ class BookingDataProcessor
|
||||
$participant->transportationInbound = $travel->transportationServices[$participant->transportationInbound->id];
|
||||
}
|
||||
|
||||
// Enrich pickup
|
||||
// Enrich pickup (only outbound - API limitation: pickups are only supported when
|
||||
// outbound transportation is bus; inbound-only bus bookings cannot have pickups)
|
||||
if (null !== $participant->pickup && isset($travel->pickupsOutbound[$participant->pickup->id])) {
|
||||
$participant->pickup = $travel->pickupsOutbound[$participant->pickup->id];
|
||||
}
|
||||
|
||||
@@ -136,7 +136,8 @@ class Booking
|
||||
* Retrieves pickup service for a specific participant.
|
||||
*
|
||||
* Finds the pickup service assigned to the specified participant
|
||||
* from the outbound pickup services.
|
||||
* from the outbound pickup services. The API only supports pickups
|
||||
* when outbound transportation is bus.
|
||||
*
|
||||
* @param int $participantIndex The participant index to search for
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user