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