讨论区帖子添加回复时,取消修改帖子的更新时间。项目最新动态只显示最新的回复,不将帖子创建重复显示

This commit is contained in:
sw 2014-07-29 09:16:11 +08:00
parent d6876fabc1
commit 52dcc6d1a1
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class MessagesController < ApplicationController
@reply.board = @board
@reply.safe_attributes = params[:reply]
@topic.children << @reply
@topic.update_attribute(:updated_on, Time.now)
#@topic.update_attribute(:updated_on, Time.now)
if !@reply.new_record?
call_hook(:controller_messages_reply_after_save, { :params => params, :message => @reply})
attachments = Attachment.attach_files(@reply, params[:attachments])