Update Flight Controller to fix an issue (#1192)

Closes #1180 and #1156. But now the script isn't beeing loaded

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
This commit is contained in:
Olli
2021-05-19 19:42:40 +02:00
committed by GitHub
parent e3c3c81d19
commit 6f1a5f1dc2

View File

@@ -152,7 +152,7 @@ class FlightController extends Controller
{
return view('admin.flights.create', [
'flight' => null,
'days' => [],
'days' => 0,
'flight_fields' => $this->flightFieldRepo->all(),
'airlines' => $this->airlineRepo->selectBoxList(),
'airports' => $this->airportRepo->selectBoxList(true, false),