]> source.dussan.org Git - redmine.git/commitdiff
Adds closed_on to issues API responses (#824).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 16 Feb 2013 15:32:44 +0000 (15:32 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 16 Feb 2013 15:32:44 +0000 (15:32 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11411 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/index.api.rsb
app/views/issues/show.api.rsb

index c25151a6672954b63179b50a956e8f08819d94e1..5009ffa7eb5a0bb85d5b304564954fc04c03159d 100644 (file)
@@ -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|
index 7363937f523f2b49caf7a1fd2fd9e5457f36fbe5..ce788a72348c38ca01fe5bd7919b23a5de3675bc 100644 (file)
@@ -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')