fix: reload booking data from API when no user edits are pending
This commit is contained in:
@@ -238,9 +238,14 @@ class IndexController extends AbstractController
|
||||
// Clear session state
|
||||
$this->bookingSessionService->clearBookingDto($request, BookingDto::MODE_EDIT);
|
||||
|
||||
// Check if a draft exists to show appropriate message
|
||||
/** @var User $user */
|
||||
$user = $this->getUser();
|
||||
|
||||
// Invalidate booking cache so a direct re-entry to /edit (bypassing /start)
|
||||
// still loads live data rather than the 5-minute cached response.
|
||||
$this->dataLoader->invalidateBookingCache($bookingId, $user);
|
||||
|
||||
// Check if a draft exists to show appropriate message
|
||||
$draft = $this->draftService->findDraft($user, $bookingId);
|
||||
|
||||
if (null !== $draft) {
|
||||
|
||||
Reference in New Issue
Block a user