fix: don't update booking session and draft on form refresh
Each form refresh would create a draft even for users that just explore booking options causing stale draft records in the database.
This commit is contained in:
@@ -287,10 +287,6 @@ class IndexController extends AbstractController
|
||||
// Collect notifications from field handlers
|
||||
$notifications = $this->collectAndClearNotifications($bookingDto);
|
||||
|
||||
// Save updated booking data to session and draft
|
||||
$this->bookingService->saveBookingDto($request, $bookingDto, BookingDto::MODE_EDIT);
|
||||
$this->draftService->saveDraft($user, $id, $bookingDto);
|
||||
|
||||
// Get complete summary data (pricing, rooms, CMS data)
|
||||
$summaryData = $this->summaryDataService->getSummaryData($bookingDto);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user