@@ -68,7 +68,6 class NewsController < ApplicationController | |||
|
68 | 68 | |
|
69 | 69 | def create |
|
70 | 70 | @news = News.new(:project => @project, :author => User.current) |
|
71 | if request.post? | |
|
72 | 71 |
|
|
73 | 72 |
|
|
74 | 73 |
|
@@ -79,13 +78,12 class NewsController < ApplicationController | |||
|
79 | 78 |
|
|
80 | 79 |
|
|
81 | 80 |
|
|
82 | end | |
|
83 | 81 | |
|
84 | 82 | def edit |
|
85 | 83 | end |
|
86 | 84 | |
|
87 | 85 | def update |
|
88 |
if |
|
|
86 | if @news.update_attributes(params[:news]) | |
|
89 | 87 | attachments = Attachment.attach_files(@news, params[:attachments]) |
|
90 | 88 | render_attachment_warning_if_needed(@news) |
|
91 | 89 | flash[:notice] = l(:notice_successful_update) |
General Comments 0
You need to be logged in to leave comments.
Login now