chore: columns on some champs at this point do not make sense

This commit is contained in:
Paul Chavard 2024-10-30 14:29:13 +01:00
parent e2ace4f6bd
commit e9991573e7
No known key found for this signature in database
3 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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])