Redmine 4.1.7
This commit is contained in:
parent
55458d3479
commit
3ca3c37487
103 changed files with 2426 additions and 431 deletions
|
@ -155,11 +155,7 @@ class WikiPage < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def content_for_version(version=nil)
|
||||
if content
|
||||
result = content.versions.find_by_version(version.to_i) if version
|
||||
result ||= content
|
||||
result
|
||||
end
|
||||
(content && version) ? content.versions.find_by_version(version.to_i) : content
|
||||
end
|
||||
|
||||
def diff(version_to=nil, version_from=nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue