Fix Aircraft Dropdown Grouping (#1216)

* Update PirepController

Frontend : Use `$subfleet->type`  instead of `name` for grouping aircraft list.

* Update PirepController (Admin)

Use `$subfleet->type` instead of `name` here too , for grouping aircraft list according to their subfleets.

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
pull/1213/head^2
B.Fatih KOZ 3 years ago committed by GitHub
parent 5a5fd02dac
commit ad86e996d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

@ -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;

Loading…
Cancel
Save