fix(editeur_de_champ): can join an pj template
This commit is contained in:
parent
6b5f38ce74
commit
adf194cc08
4 changed files with 21 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue