Adds parent project to /projects/:id API (#8229).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6203 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-07-09 11:39:10 +00:00
parent 389c7779e6
commit 95f332af5a
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ api.project do
api.identifier @project.identifier
api.description @project.description
api.homepage @project.homepage
api.parent(:id => @project.parent_id, :name => @project.parent.name) unless @project.parent.nil?
render_api_custom_values @project.visible_custom_field_values, api