mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Includes project in wiki page API response (#43569).
git-svn-id: https://svn.redmine.org/redmine/trunk@24201 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -7,6 +7,7 @@ api.wiki_page do
|
||||
api.version @content.version
|
||||
api.author(:id => @content.author_id, :name => @content.author.name) unless @content.author_id.nil?
|
||||
api.comments @content.comments
|
||||
api.project(:id => @page.project_id, :name => @page.project.name) unless @page.project.nil?
|
||||
api.created_on @page.created_on
|
||||
api.updated_on @content.updated_on
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
|
||||
assert_select 'text'
|
||||
assert_select 'author'
|
||||
assert_select 'comments'
|
||||
assert_select 'project[id=1][name="eCookbook"]'
|
||||
assert_select 'created_on'
|
||||
assert_select 'updated_on'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user