Merge pull request #5054 from tchak/fix-old-carto-api

fix legacy api carte serializer
This commit is contained in:
Paul Chavard 2020-04-17 13:22:24 +02:00 committed by GitHub
commit 10bc3c5551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ class DossierSerializer < ActiveModel::Serializer
end
if champ_carte.present?
champs_geo_areas = geo_areas.filter do |geo_area|
champs_geo_areas = champ_carte.geo_areas.filter do |geo_area|
geo_area.source != GeoArea.sources.fetch(:selection_utilisateur)
end
champs_geo_areas << champ_carte.selection_utilisateur_legacy_geo_area