dossiers: allow auto upload of attachments

This commit is contained in:
Pierre de La Morinerie 2020-03-30 13:34:56 +00:00
parent a1083ca253
commit 6417c0d2c0
22 changed files with 475 additions and 9 deletions

View file

@ -31,4 +31,10 @@ module ChampHelper
"desc-#{champ.type_de_champ.id}-#{champ.row}"
end
end
def auto_attach_url(form, object)
if feature_enabled?(:autoupload_dossier_attachments) && object.is_a?(Champ) && object.public?
champs_piece_justificative_url(form.index)
end
end
end