lib/models/trip_leg.rb in fossil-0.5.10 vs lib/models/trip_leg.rb in fossil-0.5.11
- old
+ new
@@ -800,18 +800,12 @@
return "FLOG" if status != 1 and flight_time_actual > 0
case status
when 0 then "SCHED"
when 1 then "VERI"
when 10,23 then "CANC"
- when 21 then
- case leg_type_code
- when 7 then "UMAINT"
- when 103 then "SMAINT"
-# when 113 then "RMAINT"
- else "MAINT"
- end
+ when 21 then "MAINT"
when 20 then "SCHED" #really is "RESVD"
- else "[#{status}]";
+ else status
end
end
# This method guarantees an icao for a view that needs one. If there is an icao, use it, otherwise make
# it from the prefix and airport_id .. which works as an icao, but beware, because these put together
\ No newline at end of file