mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
eae2ade740
Resolving every waypoint day from endpoint.local_date also changed the edit path, where it inverts the precedence the form uses everywhere else: local_date is denormalised and the server only restamps it in the day_id branch of insertDay, and only when reservation_time is set. Dragging a booking to another day rewrites day_id/end_day_id and leaves the endpoints alone, so local_date points at the old day — and reopening the form and pressing Update silently moved the booking back. Gate the lookup on a prefill, where there is no saved day to lose, and the edit path behaves exactly as it did before. Same change in the mobile sheet, which shares the seeding code and would otherwise still show empty day selectors on an imported booking.