Set external_id from combo search inputs

This commit is contained in:
Paul Chavard 2021-01-14 23:54:32 +01:00
parent 09a3cacd88
commit 9f691dce4c
7 changed files with 32 additions and 10 deletions

View file

@ -323,8 +323,8 @@ module Users
def champs_params
params.permit(dossier: {
champs_attributes: [
:id, :value, :primary_value, :secondary_value, :piece_justificative_file, value: [],
champs_attributes: [:id, :_destroy, :value, :primary_value, :secondary_value, :piece_justificative_file, value: []]
:id, :value, :external_id, :primary_value, :secondary_value, :piece_justificative_file, value: [],
champs_attributes: [:id, :_destroy, :value, :external_id, :primary_value, :secondary_value, :piece_justificative_file, value: []]
]
})
end