From 7a1af68178a1d7d57218228d9a5fd57cbfd04717 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 16 Feb 2013 15:32:44 +0000 Subject: [PATCH] Adds closed_on to issues API responses (#824). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11411 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/index.api.rsb | 1 + app/views/issues/show.api.rsb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/issues/index.api.rsb b/app/views/issues/index.api.rsb index c25151a66..5009ffa7e 100644 --- a/app/views/issues/index.api.rsb +++ b/app/views/issues/index.api.rsb @@ -23,6 +23,7 @@ api.array :issues, api_meta(:total_count => @issue_count, :offset => @offset, :l api.created_on issue.created_on api.updated_on issue.updated_on + api.closed_on issue.closed_on api.array :relations do issue.relations.each do |relation| diff --git a/app/views/issues/show.api.rsb b/app/views/issues/show.api.rsb index 7363937f5..ce788a723 100644 --- a/app/views/issues/show.api.rsb +++ b/app/views/issues/show.api.rsb @@ -22,6 +22,7 @@ api.issue do api.created_on @issue.created_on api.updated_on @issue.updated_on + api.closed_on @issue.closed_on render_api_issue_children(@issue, api) if include_in_api_response?('children') -- 2.39.5