fix(instructeur): exclude repetitions from filters/display
This commit is contained in:
parent
2b2d65de87
commit
b88d984828
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ class ProcedurePresentation < ApplicationRecord
|
|||
|
||||
fields.concat procedure.types_de_champ_for_procedure_presentation
|
||||
.pluck(:type_champ, :libelle, :private, :stable_id)
|
||||
.reject { |(type_champ)| type_champ == TypeDeChamp.type_champs.fetch(:repetition) }
|
||||
.map { |(type_champ, libelle, is_private, stable_id)| field_hash(is_private ? TYPE_DE_CHAMP_PRIVATE : TYPE_DE_CHAMP, stable_id.to_s, label: libelle, type: (TypeDeChamp.options_for_select?(type_champ) ? :enum : :text)) }
|
||||
|
||||
fields
|
||||
|
|
Loading…
Reference in a new issue