diff options
Diffstat (limited to 'app/controllers/vehicle_journeys_controller.rb')
| -rw-r--r-- | app/controllers/vehicle_journeys_controller.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/controllers/vehicle_journeys_controller.rb b/app/controllers/vehicle_journeys_controller.rb index 14795227c..e532712d2 100644 --- a/app/controllers/vehicle_journeys_controller.rb +++ b/app/controllers/vehicle_journeys_controller.rb @@ -155,6 +155,10 @@ class VehicleJourneysController < ChouetteController    private    def load_custom_fields      @custom_fields = referential.workgroup&.custom_fields_definitions || {} + +    @extra_headers = Rails.application.config.vehicle_journeys_extra_headers.dup.delete_if do |header| +      header[:type] == :custom_field and not @custom_fields.has_key?(header[:name].to_s) +    end    end    def map_stop_points points | 
