Merge pull request #5832 from tchak/fix-carte-without-options
Fix a crash when champ carte has no options
This commit is contained in:
commit
20be409446
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class Champs::CarteChamp < Champ
|
||||||
end
|
end
|
||||||
|
|
||||||
def layer_enabled?(layer)
|
def layer_enabled?(layer)
|
||||||
type_de_champ.options[layer] && type_de_champ.options[layer] != '0'
|
type_de_champ.options && type_de_champ.options[layer] && type_de_champ.options[layer] != '0'
|
||||||
end
|
end
|
||||||
|
|
||||||
def cadastres?
|
def cadastres?
|
||||||
|
|
Loading…
Add table
Reference in a new issue