讨论区帖子添加回复时,取消修改帖子的更新时间。项目最新动态只显示最新的回复,不将帖子创建重复显示
This commit is contained in:
parent
d6876fabc1
commit
52dcc6d1a1
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue