diff --git a/app/Http/Controllers/Admin/PirepController.php b/app/Http/Controllers/Admin/PirepController.php index b5cd5347..816024fe 100644 --- a/app/Http/Controllers/Admin/PirepController.php +++ b/app/Http/Controllers/Admin/PirepController.php @@ -100,7 +100,7 @@ class PirepController extends Controller $tmp[$ac->id] = $ac['name'].' - '.$ac['registration']; } - $aircraft[$subfleet->name] = $tmp; + $aircraft[$subfleet->type] = $tmp; } return $aircraft; diff --git a/app/Http/Controllers/Frontend/PirepController.php b/app/Http/Controllers/Frontend/PirepController.php index 3b990394..3759ac05 100644 --- a/app/Http/Controllers/Frontend/PirepController.php +++ b/app/Http/Controllers/Frontend/PirepController.php @@ -103,7 +103,7 @@ class PirepController extends Controller $tmp[$ac->id] = $ac['name'].' - '.$ac['registration']; } - $aircraft[$subfleet->name] = $tmp; + $aircraft[$subfleet->type] = $tmp; } return $aircraft;