diff options
author | Go MAEDA <maeda@farend.jp> | 2019-10-31 02:15:10 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-10-31 02:15:10 +0000 |
commit | 23cae559bcb0ab68544bedd2f7b2307f2bcfd96b (patch) | |
tree | 047f4b64ff9aac42a1022ec3dcfdadbd58e7e87f /app/views | |
parent | 95c48e0708c6713a0c1357e872e5d2c85ba7a66a (diff) | |
download | redmine-23cae559bcb0ab68544bedd2f7b2307f2bcfd96b.tar.gz redmine-23cae559bcb0ab68544bedd2f7b2307f2bcfd96b.zip |
Add estimated hours and spent hours to Versions API (#32242).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18883 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/versions/show.api.rsb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/versions/show.api.rsb b/app/views/versions/show.api.rsb index 345ec56da..2fa0f1290 100644 --- a/app/views/versions/show.api.rsb +++ b/app/views/versions/show.api.rsb @@ -8,6 +8,10 @@ api.version do api.due_date @version.effective_date api.sharing @version.sharing api.wiki_page_title @version.wiki_page_title + if User.current.allowed_to?(:view_time_entries, @project) + api.estimated_hours(@version.visible_fixed_issues.estimated_hours) + api.spent_hours(@version.spent_hours) + end render_api_custom_values @version.visible_custom_field_values, api |