diff --git a/app/graphql/schema.graphql b/app/graphql/schema.graphql index 240bdb86e..2b54aedb8 100644 --- a/app/graphql/schema.graphql +++ b/app/graphql/schema.graphql @@ -40,7 +40,7 @@ type Address { postalCode: String! """ - n° de region + n° de région """ regionCode: String diff --git a/app/graphql/types/address_type.rb b/app/graphql/types/address_type.rb index 59633e7b9..a3ec4060e 100644 --- a/app/graphql/types/address_type.rb +++ b/app/graphql/types/address_type.rb @@ -24,7 +24,7 @@ module Types field :department_code, String, "n° de département", null: true field :region_name, String, "nom de région", null: true - field :region_code, String, "n° de region", null: true + field :region_code, String, "n° de région", null: true field :geometry, Types::GeoJSON, "coordonnées géographique", null: true diff --git a/app/models/concerns/addressable_column_concern.rb b/app/models/concerns/addressable_column_concern.rb index 98cdab56d..42974f69c 100644 --- a/app/models/concerns/addressable_column_concern.rb +++ b/app/models/concerns/addressable_column_concern.rb @@ -10,7 +10,7 @@ module AddressableColumnConcern table:, displayable: false, column: stable_id, - label: "#{libelle} – code postal (5 chiffres)", + label: "#{libelle} – code postal (5 chiffres)", type: :text, value_column: ['postal_code'] ), @@ -34,7 +34,7 @@ module AddressableColumnConcern table:, displayable: false, column: stable_id, - label: "#{libelle} – region", + label: "#{libelle} – région", type: :enum, value_column: ['region_name'] )