comments: save modification date for main comment on edit.
This commit is contained in:
parent
c614a4b09d
commit
29356473c4
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
|||
"""
|
||||
comments model for RhodeCode
|
||||
"""
|
||||
import datetime
|
||||
|
||||
import logging
|
||||
import traceback
|
||||
|
|
@ -501,6 +502,8 @@ class CommentsModel(BaseModel):
|
|||
comment = ChangesetComment.get(comment_id)
|
||||
old_comment_text = comment.text
|
||||
comment.text = text
|
||||
comment.modified_at = datetime.datetime.now()
|
||||
|
||||
comment_version = ChangesetCommentHistory.get_version(comment_id)
|
||||
if (comment_version - version) != 1:
|
||||
log.warning(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue