Merge pull request #5163 from betagouv/fix-carto-validation-bug
fix bug on mandatory carto (new map editor)
This commit is contained in:
commit
2762bd8a80
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