Mercurial > hg > soundsoftware-site
diff app/models/.svn/text-base/wiki_page.rb.svn-base @ 507:0c939c159af4 redmine-1.2
Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:32:19 +0100 |
parents | cbce1fd3b1b7 |
children |
line wrap: on
line diff
--- a/app/models/.svn/text-base/wiki_page.rb.svn-base Mon Jun 06 14:24:13 2011 +0100 +++ b/app/models/.svn/text-base/wiki_page.rb.svn-base Thu Jul 14 10:32:19 2011 +0100 @@ -212,6 +212,10 @@ break unless @lines.detect { |line| line[0].nil? } current = current.previous end - @lines.each { |line| line[0] ||= current.version } + @lines.each { |line| + line[0] ||= current.version + # if the last known version is > 1 (eg. history was cleared), we don't know the author + line[1] ||= current.author if current.version == 1 + } end end