diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-23 13:08:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-23 13:08:32 +0000 |
commit | 3871cbc75c4ed8ad8501d77e09a740cfb0f7c7f8 (patch) | |
tree | 3dc1617fb80e99f7cf5312b43ecf96387dc149b5 /app | |
parent | 707ce0beeff88e0d9250f5390b0d0559e82cbed9 (diff) | |
download | redmine-3871cbc75c4ed8ad8501d77e09a740cfb0f7c7f8.tar.gz redmine-3871cbc75c4ed8ad8501d77e09a740cfb0f7c7f8.zip |
Preserve uploaded files when on news.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8943 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/news_controller.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 9d55f08b3..03a7ba29e 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -71,7 +71,6 @@ class NewsController < ApplicationController @news.attributes = params[:news] @news.save_attachments(params[:attachments]) if @news.save - attachments = Attachment.attach_files(@news, params[:attachments]) render_attachment_warning_if_needed(@news) flash[:notice] = l(:notice_successful_create) redirect_to :controller => 'news', :action => 'index', :project_id => @project @@ -86,7 +85,6 @@ class NewsController < ApplicationController def update @news.save_attachments(params[:attachments]) if @news.update_attributes(params[:news]) - attachments = Attachment.attach_files(@news, params[:attachments]) render_attachment_warning_if_needed(@news) flash[:notice] = l(:notice_successful_update) redirect_to :action => 'show', :id => @news |