diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-09-13 11:22:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-09-13 11:22:49 +0000 |
commit | d30367d46bcf0f21d994a48b26b619974bd5c813 (patch) | |
tree | 1d1c9edc4832dc7e1949a406ec483a0fe179129b /app/views | |
parent | 416ebc222db4604e1f4740189ec4d18c3c454f51 (diff) | |
download | redmine-d30367d46bcf0f21d994a48b26b619974bd5c813.tar.gz redmine-d30367d46bcf0f21d994a48b26b619974bd5c813.zip |
Issue API: include is_private attribute in xml/json output (#10914).
Patch by Shivam Daryanani.
git-svn-id: http://svn.redmine.org/redmine/trunk@13395 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/issues/index.api.rsb | 1 | ||||
-rw-r--r-- | app/views/issues/show.api.rsb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/issues/index.api.rsb b/app/views/issues/index.api.rsb index c3bcfd74b..7660ccbd5 100644 --- a/app/views/issues/index.api.rsb +++ b/app/views/issues/index.api.rsb @@ -17,6 +17,7 @@ api.array :issues, api_meta(:total_count => @issue_count, :offset => @offset, :l api.start_date issue.start_date api.due_date issue.due_date api.done_ratio issue.done_ratio + api.is_private issue.is_private api.estimated_hours issue.estimated_hours render_api_custom_values issue.visible_custom_field_values, api diff --git a/app/views/issues/show.api.rsb b/app/views/issues/show.api.rsb index 3878e71bd..f057b4c63 100644 --- a/app/views/issues/show.api.rsb +++ b/app/views/issues/show.api.rsb @@ -15,6 +15,7 @@ api.issue do api.start_date @issue.start_date api.due_date @issue.due_date api.done_ratio @issue.done_ratio + api.is_private @issue.is_private api.estimated_hours @issue.estimated_hours api.spent_hours(@issue.spent_hours) if User.current.allowed_to?(:view_time_entries, @project) |