Fixed: child_pages macro fails on wiki page history (#4152).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3006 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6994a81209
commit
4ea714fb91
|
@ -95,7 +95,7 @@ module Redmine
|
|||
page = nil
|
||||
if args.size > 0
|
||||
page = Wiki.find_page(args.first.to_s, :project => @project)
|
||||
elsif obj.is_a?(WikiContent)
|
||||
elsif obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version)
|
||||
page = obj.page
|
||||
else
|
||||
raise 'With no argument, this macro can be called from wiki pages only.'
|
||||
|
|
Loading…
Reference in New Issue