fix(editeur_de_champ): can join an pj template

This commit is contained in:
simon lehericey 2022-08-11 14:01:26 +02:00
parent 6b5f38ce74
commit adf194cc08
4 changed files with 21 additions and 3 deletions

View file

@ -23,6 +23,8 @@ module ChampHelper
def auto_attach_url(object)
if object.is_a?(Champ)
champs_piece_justificative_url(object.id)
elsif object.is_a?(TypeDeChamp)
piece_justificative_template_admin_procedure_type_de_champ_url(stable_id: object.stable_id, procedure_id: object.procedure.id)
end
end