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