mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 19:36:00 +01:00
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:
@@ -95,7 +95,7 @@ module Redmine
|
|||||||
page = nil
|
page = nil
|
||||||
if args.size > 0
|
if args.size > 0
|
||||||
page = Wiki.find_page(args.first.to_s, :project => @project)
|
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
|
page = obj.page
|
||||||
else
|
else
|
||||||
raise 'With no argument, this macro can be called from wiki pages only.'
|
raise 'With no argument, this macro can be called from wiki pages only.'
|
||||||
|
|||||||
Reference in New Issue
Block a user