Skip to content

Commit

Permalink
fix(BookingAdminController): remove time values if it really was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroverts committed Jun 6, 2024
1 parent a60db70 commit d4e55c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/Booking/BookingAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,17 @@ 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) {
$flightAttributes['eta'] = Carbon::createFromFormat(
'Y-m-d H:i',
$booking->event->startEvent->toDateString() . ' ' . $request->eta
);
} else {
$flightAttributes['eta'] = null;
}

$flight->fill($flightAttributes);
Expand Down

0 comments on commit d4e55c9

Please sign in to comment.