summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-18 19:07:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-18 19:07:54 +0000
commit4a2efa9252baebcdaa03587c674fec20ed2214ad (patch)
tree27239933c1c3560bfb1e5a49b8e535b216f3658b
parent8e00f57a886ae529ae308a17bfc9a363056754bf (diff)
downloadredmine-4a2efa9252baebcdaa03587c674fec20ed2214ad.tar.gz
redmine-4a2efa9252baebcdaa03587c674fec20ed2214ad.zip
Ported r1009 from 0.6-stable branch.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1013 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 84203a34d..a58eef719 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -311,7 +311,7 @@ class ProjectsController < ApplicationController
def add_file
if request.post?
@version = @project.versions.find_by_id(params[:version_id])
- attachments = attach_files(@issue, params[:attachments])
+ attachments = attach_files(@version, params[:attachments])
Mailer.deliver_attachments_added(attachments) if !attachments.empty? && Setting.notified_events.include?('file_added')
redirect_to :controller => 'projects', :action => 'list_files', :id => @project
end