parent
b21201c122
commit
866d95c945
@ -350,10 +350,11 @@ class PirepController extends Controller
|
|||||||
|
|
||||||
if ($request->has('sb_id')) {
|
if ($request->has('sb_id')) {
|
||||||
$brief = SimBrief::find($request->input('sb_id'));
|
$brief = SimBrief::find($request->input('sb_id'));
|
||||||
|
if ($brief !== null) {
|
||||||
/** @var SimBriefService $sbSvc */
|
/** @var SimBriefService $sbSvc */
|
||||||
$sbSvc = app(SimBriefService::class);
|
$sbSvc = app(SimBriefService::class);
|
||||||
$sbSvc->attachSimbriefToPirep($pirep, $brief);
|
$sbSvc->attachSimbriefToPirep($pirep, $brief);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Depending on the button they selected, set an initial state
|
// Depending on the button they selected, set an initial state
|
||||||
|
Loading…
Reference in New Issue
Block a user