Merge pull request #5163 from betagouv/fix-carto-validation-bug

fix bug on mandatory carto (new map editor)
This commit is contained in:
Kara Diaby 2020-05-15 17:20:50 +02:00 committed by GitHub
commit 2762bd8a80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ class Champ < ApplicationRecord
def blank?
case type_de_champ.type_champ
when TypeDeChamp.type_champs.fetch(:carte)
value.blank? || value == '[]'
geo_areas.blank? || value == '[]'
else
value.blank?
end