More $pirep->ident usage fixes (#1353)

* Fix idents with double code

* Fix ident usage

* Fix ident usage

* Fix ident usage
This commit is contained in:
B.Fatih KOZ 2021-11-16 19:39:47 +03:00 committed by GitHub
parent 4e7149a51c
commit b9c29fbe08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -48,9 +48,9 @@ class PirepPrefiled extends Notification implements ShouldQueue
return null;
}
$title = 'Flight '.$pirep->airline->code.$pirep->ident.' Prefiled';
$title = 'Flight '.$pirep->ident.' Prefiled';
$fields = [
'Flight' => $pirep->airline->code.$pirep->ident,
'Flight' => $pirep->ident,
'Departure Airport' => $pirep->dpt_airport_id,
'Arrival Airport' => $pirep->arr_airport_id,
'Equipment' => $pirep->aircraft->ident,

View File

@ -77,10 +77,10 @@ class PirepStatusChanged extends Notification implements ShouldQueue
return null;
}
$title = 'Flight '.$pirep->airline->code.$pirep->ident.' '.self::$verbs[$pirep->status];
$title = 'Flight '.$pirep->ident.' '.self::$verbs[$pirep->status];
$fields = [
'Flight' => $pirep->airline->code.$pirep->ident,
'Flight' => $pirep->ident,
'Departure Airport' => $pirep->dpt_airport_id,
'Arrival Airport' => $pirep->arr_airport_id,
'Equipment' => $pirep->aircraft->ident,

View File

@ -55,9 +55,9 @@ class PirepSubmitted extends Notification implements ShouldQueue
return null;
}
$title = 'Flight '.$pirep->airline->code.$pirep->ident.' Filed';
$title = 'Flight '.$pirep->ident.' Filed';
$fields = [
'Flight' => $pirep->airline->code.$pirep->ident,
'Flight' => $pirep->ident,
'Departure Airport' => $pirep->dpt_airport_id,
'Arrival Airport' => $pirep->arr_airport_id,
'Equipment' => $pirep->aircraft->ident,

View File

@ -90,7 +90,7 @@ and being mindful of the rivets bindings
</thead>
<tbody>
<tr rv-each-pirep="pireps">
<td><a href="#top_anchor" rv-on-click="controller.focusMarker">{ pirep.airline.icao }{ pirep.ident}</a></td>
<td><a href="#top_anchor" rv-on-click="controller.focusMarker">{ pirep.ident }</a></td>
{{-- Show the full airport name on hover --}}
<td><span rv-title="pirep.dpt_airport.name">{ pirep.dpt_airport.icao }</span></td>
<td><span rv-title="pirep.arr_airport.name">{ pirep.arr_airport.icao }</span></td>