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:
Alexey Verkhovsky 2005-01-16 22:27:09 +00:00
parent da3674770e
commit ef65e5e78a
2 changed files with 2 additions and 1 deletions

View file

@ -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