chore: columns on some champs at this point do not make sense
This commit is contained in:
parent
e2ace4f6bd
commit
e9991573e7
3 changed files with 10 additions and 1 deletions
|
@ -27,4 +27,8 @@ class TypesDeChamp::CarteTypeDeChamp < TypesDeChamp::TypeDeChampBase
|
||||||
def champ_value_for_export(champ, path = :value)
|
def champ_value_for_export(champ, path = :value)
|
||||||
champ.geo_areas.map(&:label).join("\n")
|
champ.geo_areas.map(&:label).join("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def columns(procedure_id:, displayable: true, prefix: nil)
|
||||||
|
[]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,4 +22,8 @@ class TypesDeChamp::PieceJustificativeTypeDeChamp < TypesDeChamp::TypeDeChampBas
|
||||||
attachment.url
|
attachment.url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def columns(procedure_id:, displayable: true, prefix: nil)
|
||||||
|
[]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -66,7 +66,8 @@ describe Column do
|
||||||
expect_type_de_champ_values('linked_drop_down_list', [nil, "categorie 1", "choix 1"])
|
expect_type_de_champ_values('linked_drop_down_list', [nil, "categorie 1", "choix 1"])
|
||||||
expect_type_de_champ_values('yes_no', [true])
|
expect_type_de_champ_values('yes_no', [true])
|
||||||
expect_type_de_champ_values('annuaire_education', [nil])
|
expect_type_de_champ_values('annuaire_education', [nil])
|
||||||
expect_type_de_champ_values('carte', [nil])
|
expect_type_de_champ_values('carte', [])
|
||||||
|
expect_type_de_champ_values('piece_justificative', [])
|
||||||
expect_type_de_champ_values('cnaf', [nil])
|
expect_type_de_champ_values('cnaf', [nil])
|
||||||
expect_type_de_champ_values('dgfip', [nil])
|
expect_type_de_champ_values('dgfip', [nil])
|
||||||
expect_type_de_champ_values('pole_emploi', [nil])
|
expect_type_de_champ_values('pole_emploi', [nil])
|
||||||
|
|
Loading…
Reference in a new issue