This commit is contained in:
Xavier J 2016-04-14 17:56:03 +02:00
parent 8c4810ced3
commit 4099efd326

View file

@ -5,9 +5,9 @@ class PiecesJustificativesService
dossier.types_de_piece_justificative.each do |type_de_pieces_justificatives| dossier.types_de_piece_justificative.each do |type_de_pieces_justificatives|
unless params["piece_justificative_#{type_de_pieces_justificatives.id}"].nil? unless params["piece_justificative_#{type_de_pieces_justificatives.id}"].nil?
unless ClamavService.safe_io_data? params["piece_justificative_#{type_de_pieces_justificatives.id}"].path # unless ClamavService.safe_io_data? params["piece_justificative_#{type_de_pieces_justificatives.id}"].path
#
end # end
piece_justificative = PieceJustificative.new(content: params["piece_justificative_#{type_de_pieces_justificatives.id}"], piece_justificative = PieceJustificative.new(content: params["piece_justificative_#{type_de_pieces_justificatives.id}"],
dossier: dossier, dossier: dossier,