limitation des params selon le type de PJ
This commit is contained in:
parent
ec24ce3dad
commit
79ba52317a
2 changed files with 8 additions and 1 deletions
|
@ -20,6 +20,7 @@ class AttachmentsController < ApplicationController
|
|||
@attachment = @blob.attachments.find(params[:id])
|
||||
@attachment.purge_later
|
||||
flash.notice = 'La pièce jointe a bien été supprimée.'
|
||||
|
||||
if params[:dossier_id]
|
||||
@champ = find_champ
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue