@@ -71,7 +71,6 class NewsController < ApplicationController | |||
|
71 | 71 | @news.attributes = params[:news] |
|
72 | 72 | @news.save_attachments(params[:attachments]) |
|
73 | 73 | if @news.save |
|
74 | attachments = Attachment.attach_files(@news, params[:attachments]) | |
|
75 | 74 | render_attachment_warning_if_needed(@news) |
|
76 | 75 | flash[:notice] = l(:notice_successful_create) |
|
77 | 76 | redirect_to :controller => 'news', :action => 'index', :project_id => @project |
@@ -86,7 +85,6 class NewsController < ApplicationController | |||
|
86 | 85 | def update |
|
87 | 86 | @news.save_attachments(params[:attachments]) |
|
88 | 87 | if @news.update_attributes(params[:news]) |
|
89 | attachments = Attachment.attach_files(@news, params[:attachments]) | |
|
90 | 88 | render_attachment_warning_if_needed(@news) |
|
91 | 89 | flash[:notice] = l(:notice_successful_update) |
|
92 | 90 | redirect_to :action => 'show', :id => @news |
General Comments 0
You need to be logged in to leave comments.
Login now