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?
|
def blank?
|
||||||
case type_de_champ.type_champ
|
case type_de_champ.type_champ
|
||||||
when TypeDeChamp.type_champs.fetch(:carte)
|
when TypeDeChamp.type_champs.fetch(:carte)
|
||||||
value.blank? || value == '[]'
|
geo_areas.blank? || value == '[]'
|
||||||
else
|
else
|
||||||
value.blank?
|
value.blank?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue