fix bug on mandatory carto champ for the new map editor
This commit is contained in:
parent
902621a8d4
commit
db5fd9bd0f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue