@@ -311,7 +311,7 class ProjectsController < ApplicationController | |||
|
311 | 311 | def add_file |
|
312 | 312 | if request.post? |
|
313 | 313 | @version = @project.versions.find_by_id(params[:version_id]) |
|
314 |
attachments = attach_files(@ |
|
|
314 | attachments = attach_files(@version, params[:attachments]) | |
|
315 | 315 | Mailer.deliver_attachments_added(attachments) if !attachments.empty? && Setting.notified_events.include?('file_added') |
|
316 | 316 | redirect_to :controller => 'projects', :action => 'list_files', :id => @project |
|
317 | 317 | end |
General Comments 0
You need to be logged in to leave comments.
Login now