Adds visibility condition on parent project in API.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6204 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-07-09 11:41:04 +00:00
parent 95f332af5a
commit 3c2ebd7aa2
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -4,7 +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?
api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible?
render_api_custom_values @project.visible_custom_field_values, api