diff options
author | Go MAEDA <maeda@farend.jp> | 2020-03-17 08:59:21 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-03-17 08:59:21 +0000 |
commit | 348df5f978bed97342c661c4bdb47ab43f2096ce (patch) | |
tree | 909d57286b1e3682a9acb945aa803028952cdf7c /app/views/projects | |
parent | 7c608f9f4aab243e4417f6e12c8426ef00924dbc (diff) | |
download | redmine-348df5f978bed97342c661c4bdb47ab43f2096ce.tar.gz redmine-348df5f978bed97342c661c4bdb47ab43f2096ce.zip |
Show default assignee and default version in projects API (#33113).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@19581 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/show.api.rsb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/show.api.rsb b/app/views/projects/show.api.rsb index 240b18883..7ad4ecc30 100644 --- a/app/views/projects/show.api.rsb +++ b/app/views/projects/show.api.rsb @@ -8,6 +8,8 @@ api.project do api.status @project.status api.is_public @project.is_public? api.inherit_members @project.inherit_members? + api.default_version(:id => @project.default_version.id, :name => @project.default_version.name) if @project.default_version + api.default_assignee(:id => @project.project.default_assigned_to.id, :name => @project.project.default_assigned_to.name) if @project.default_assigned_to render_api_custom_values @project.visible_custom_field_values, api render_api_includes(@project, api) |