fix bug on mandatory carto champ for the new map editor

This commit is contained in:
kara Diaby 2020-05-15 13:44:50 +02:00
parent 902621a8d4
commit db5fd9bd0f

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