Fix flight type parameter

This commit is contained in:
Nabeel Shahzad
2018-04-30 17:29:42 -05:00
parent 7decac105f
commit 73ffc9cf44
4 changed files with 8 additions and 3 deletions

View File

@@ -209,6 +209,11 @@ class PirepController extends Controller
$this->checkCancelled($pirep);
}
// Default to a scheduled passenger flight
if(!array_key_exists('flight_type', $attrs)) {
$attrs['flight_type'] = 'J';
}
$pirep->save();
Log::info('PIREP PREFILED');