[#3356] Prepare for multiples tags per type de champ
This commit is contained in:
parent
6c3cb2716e
commit
d67af741d5
1 changed files with 8 additions and 6 deletions
|
@ -167,12 +167,14 @@ module TagsSubstitutionConcern
|
||||||
end
|
end
|
||||||
|
|
||||||
def types_de_champ_tags(types_de_champ, available_for_states)
|
def types_de_champ_tags(types_de_champ, available_for_states)
|
||||||
types_de_champ.map do |tdc|
|
types_de_champ.flat_map do |tdc|
|
||||||
{
|
[
|
||||||
libelle: tdc.libelle,
|
{
|
||||||
description: tdc.description,
|
libelle: tdc.libelle,
|
||||||
available_for_states: available_for_states
|
description: tdc.description,
|
||||||
}
|
available_for_states: available_for_states
|
||||||
|
}
|
||||||
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue