Merge pull request #10939 from demarches-simplifiees/fix-10919

Correction bug champ carto
This commit is contained in:
Mathieu Magnin 2024-10-15 18:13:13 +00:00 committed by GitHub
commit 04bbf09097
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View file

@ -65,7 +65,7 @@ class GeoArea < ApplicationRecord
def label
case source
when GeoArea.sources.fetch(:cadastre)
I18n.t("cadastre", scope: 'geo_area.label', numero: numero, prefixe: prefixe, section: section, surface: surface.round, commune: commune)
I18n.t("cadastre", scope: 'geo_area.label', numero: numero, prefixe: prefixe, section: section, surface: surface&.round, commune: commune)
when GeoArea.sources.fetch(:selection_utilisateur)
if polygon?
if area > 0