From 8f01eebf1fa1ca736b8308890db42af3774da7eb Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Fri, 17 Apr 2020 12:46:07 +0200 Subject: [PATCH] fix legacy api carte serializer --- app/serializers/dossier_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/dossier_serializer.rb b/app/serializers/dossier_serializer.rb index b5a4beeb8..d4b4a90d6 100644 --- a/app/serializers/dossier_serializer.rb +++ b/app/serializers/dossier_serializer.rb @@ -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