Merge pull request #8513 from demarches-simplifiees/feature/prefill_repetible

Prefill repeatable
This commit is contained in:
Damien Le Thiec 2023-02-27 09:58:53 +00:00 committed by GitHub
commit 67bbacbb05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 589 additions and 289 deletions

View file

@ -12,6 +12,6 @@ class PrefillTypeDeChampsController < ApplicationController
end
def set_prefill_type_de_champ
@type_de_champ = TypesDeChamp::PrefillTypeDeChamp.build(@procedure.active_revision.types_de_champ_public.fillable.find(params[:id]))
@type_de_champ = TypesDeChamp::PrefillTypeDeChamp.build(@procedure.active_revision.types_de_champ.fillable.find(params[:id]), @procedure.active_revision)
end
end