From d4e55c970472c762107e6226234289111d5c45f6 Mon Sep 17 00:00:00 2001 From: Dave Roverts Date: Thu, 6 Jun 2024 21:47:23 +0200 Subject: [PATCH] fix(BookingAdminController): remove time values if it really was removed --- app/Http/Controllers/Booking/BookingAdminController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/Booking/BookingAdminController.php b/app/Http/Controllers/Booking/BookingAdminController.php index af47db67..f76c2b62 100644 --- a/app/Http/Controllers/Booking/BookingAdminController.php +++ b/app/Http/Controllers/Booking/BookingAdminController.php @@ -168,6 +168,8 @@ public function update(UpdateBooking $request, Booking $booking): RedirectRespon 'Y-m-d H:i', $booking->event->startEvent->toDateString() . ' ' . $request->ctot ); + } else { + $flightAttributes['ctot'] = null; } if ($request->eta) { @@ -175,6 +177,8 @@ public function update(UpdateBooking $request, Booking $booking): RedirectRespon 'Y-m-d H:i', $booking->event->startEvent->toDateString() . ' ' . $request->eta ); + } else { + $flightAttributes['eta'] = null; } $flight->fill($flightAttributes);