Merge pull request #5054 from tchak/fix-old-carto-api
fix legacy api carte serializer
This commit is contained in:
commit
10bc3c5551
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue