diff --git a/app/models/contestnotification.rb b/app/models/contestnotification.rb index 04ceb93c2..2f09e7f9c 100644 --- a/app/models/contestnotification.rb +++ b/app/models/contestnotification.rb @@ -1,5 +1,5 @@ class Contestnotification < ActiveRecord::Base - attr_accessible :author_id, :notificationcomments_count, :contest_id, :description, :summary, :title + #attr_accessible :author_id, :notificationcomments_count, :contest_id, :description, :summary, :title include Redmine::SafeAttributes belongs_to :contest diff --git a/app/views/contestnotifications/index.html.erb b/app/views/contestnotifications/index.html.erb index 93d4aaf1f..f4354a099 100644 --- a/app/views/contestnotifications/index.html.erb +++ b/app/views/contestnotifications/index.html.erb @@ -48,7 +48,7 @@ <%= l :label_update_time %>  <%= format_time(contestnotifications.created_at) %> - <%= link_to l(:label_project_newother), contest_contestnotification_path(@contest, contestnotifications) %><%= "(#{l(:label_x_comments, :count => contestnotifications.notificationcomments.count)})" if(contestnotifications.notificationcomments.count >= 0)%> + <%= link_to l(:label_project_newother), contest_contestnotification_path(@contest, contestnotifications) %><%= "(#{l(:label_x_comments, :count => contestnotifications.notificationcomments_count)})" if(contestnotifications.notificationcomments_count >= 0)%> diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb index 4dfa21d52..58b3aa43f 100644 --- a/app/views/news/index.html.erb +++ b/app/views/news/index.html.erb @@ -64,7 +64,7 @@ <%= l :label_update_time %> : <%= format_time(news.created_on) %> - <%= link_to l(:label_project_newother), news_path(news) %><%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count >= 0 %> +