diff options
author | Go MAEDA <maeda@farend.jp> | 2019-09-05 04:08:30 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-09-05 04:08:30 +0000 |
commit | 2782d4b9f9a55818336ccb5fde85cb0cef9c5fc2 (patch) | |
tree | c7b846d8906beab53cbdee35e04aa0a075960039 /app | |
parent | e96c4c4a2e65a59a0ed72c7fb1f9859bef7eef5e (diff) | |
download | redmine-2782d4b9f9a55818336ccb5fde85cb0cef9c5fc2.tar.gz redmine-2782d4b9f9a55818336ccb5fde85cb0cef9c5fc2.zip |
Add inherit_members to projects API response (#32002).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18431 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/index.api.rsb | 1 | ||||
-rw-r--r-- | app/views/projects/show.api.rsb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/index.api.rsb b/app/views/projects/index.api.rsb index d309af241..03c7c0c77 100644 --- a/app/views/projects/index.api.rsb +++ b/app/views/projects/index.api.rsb @@ -8,6 +8,7 @@ api.array :projects, api_meta(:total_count => @project_count, :offset => @offset api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible? api.status project.status api.is_public project.is_public? + api.inherit_members project.inherit_members? render_api_custom_values project.visible_custom_field_values, api render_api_includes(project, api) diff --git a/app/views/projects/show.api.rsb b/app/views/projects/show.api.rsb index 6e1958a34..240b18883 100644 --- a/app/views/projects/show.api.rsb +++ b/app/views/projects/show.api.rsb @@ -7,6 +7,7 @@ api.project do api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible? api.status @project.status api.is_public @project.is_public? + api.inherit_members @project.inherit_members? render_api_custom_values @project.visible_custom_field_values, api render_api_includes(@project, api) |