diff options
| author | Zog | 2018-01-11 14:37:14 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-11 14:37:14 +0100 | 
| commit | cb0564d4d7d35c8a43e166b68d8c7dc94341fc9d (patch) | |
| tree | a06beac9be2f17a49f572a844b8aa6d5171101e7 /app/models/chouette/vehicle_journey.rb | |
| parent | 8b3702a4c7f873e01e543034841de5dbecc30c06 (diff) | |
| download | chouette-core-cb0564d4d7d35c8a43e166b68d8c7dc94341fc9d.tar.bz2 | |
Refs #5551 @1.5h; Implement Custom fields edition
RBD: implement the same in the creation modal
Diffstat (limited to 'app/models/chouette/vehicle_journey.rb')
| -rw-r--r-- | app/models/chouette/vehicle_journey.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/app/models/chouette/vehicle_journey.rb b/app/models/chouette/vehicle_journey.rb index 32f3cb731..3bd83f83e 100644 --- a/app/models/chouette/vehicle_journey.rb +++ b/app/models/chouette/vehicle_journey.rb @@ -218,6 +218,7 @@ module Chouette        ['company', 'journey_pattern'].map do |association|          attrs["#{association}_id"] = item[association]['id'] if item[association]        end +      attrs["custom_field_values"] = Hash[*(item["custom_fields"] || {}).map{|k, v| [k, v["value"]]}.flatten]        attrs      end | 
