Fix to ticket 2.
When updating the last page revision in the "continuous revision" case, created_at should be used instead of Time.now.
This commit is contained in:
parent
da3674770e
commit
ef65e5e78a
2 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Page
|
|||
# by the same author, not more than 30 minutes ago, then update the last revision instead of
|
||||
# creating a new one
|
||||
if !@revisions.empty? && continous_revision?(created_at, author)
|
||||
@revisions.last.created_at = Time.now
|
||||
@revisions.last.created_at = created_at
|
||||
@revisions.last.content = content
|
||||
@revisions.last.clear_display_cache
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue