Fix PIREP submission and field slug problems on PIREP edit
This commit is contained in:
@@ -73,6 +73,7 @@ class CreateFlightTables extends Migration
|
||||
$table->bigIncrements('id');
|
||||
$table->string('flight_id', \App\Interfaces\Model::ID_MAX_LENGTH);
|
||||
$table->string('name', 50);
|
||||
$table->string('slug', 50)->nullable();
|
||||
$table->text('value');
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
@@ -394,18 +394,20 @@ flights:
|
||||
|
||||
flight_fields:
|
||||
- name: Departure Gate
|
||||
slug: departure_gate
|
||||
slug: departure-gate
|
||||
- name: Arrival Gate
|
||||
slug: arrival_gate
|
||||
slug: arrival-gate
|
||||
|
||||
flight_field_values:
|
||||
- id: 1
|
||||
flight_id: flightid_1
|
||||
name: cost index
|
||||
slug: cost-index
|
||||
value: 80
|
||||
- id: 2
|
||||
flight_id: flightid_2
|
||||
name: cost index
|
||||
slug: cost-index
|
||||
value: 100
|
||||
|
||||
flight_subfleet:
|
||||
@@ -539,24 +541,24 @@ pirep_fares:
|
||||
pirep_fields:
|
||||
- id: 1
|
||||
name: departure gate
|
||||
slug: departure_gate
|
||||
slug: departure-gate
|
||||
required: 1
|
||||
- id: 2
|
||||
name: arrival gate
|
||||
slug: arrival_gate
|
||||
slug: arrival-gate
|
||||
required: 0
|
||||
|
||||
pirep_field_values:
|
||||
- id: 1
|
||||
pirep_id: pirepid_1
|
||||
name: arrival gate
|
||||
slug: arrival_gate
|
||||
slug: arrival-gate
|
||||
value: 10
|
||||
source: manual
|
||||
- id: 2
|
||||
pirep_id: pirepid_1
|
||||
name: departure gate
|
||||
slug: departure_gate
|
||||
slug: departure-gate
|
||||
value: B32
|
||||
source: manual
|
||||
|
||||
|
||||
Reference in New Issue
Block a user