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>
This commit is contained in:
parent
5a5fd02dac
commit
ad86e996d7
@ -100,7 +100,7 @@ class PirepController extends Controller
|
|||||||
$tmp[$ac->id] = $ac['name'].' - '.$ac['registration'];
|
$tmp[$ac->id] = $ac['name'].' - '.$ac['registration'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$aircraft[$subfleet->name] = $tmp;
|
$aircraft[$subfleet->type] = $tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $aircraft;
|
return $aircraft;
|
||||||
|
@ -103,7 +103,7 @@ class PirepController extends Controller
|
|||||||
$tmp[$ac->id] = $ac['name'].' - '.$ac['registration'];
|
$tmp[$ac->id] = $ac['name'].' - '.$ac['registration'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$aircraft[$subfleet->name] = $tmp;
|
$aircraft[$subfleet->type] = $tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $aircraft;
|
return $aircraft;
|
||||||
|
Loading…
Reference in New Issue
Block a user