summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-05-01 14:07:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-05-01 14:07:36 +0000
commitcbd4af236cd34b54f250dfbdd94f3176582b7b6c (patch)
tree4d87cafd649be9fb72e35a6554aa628391eb207a /app/views
parenta499efd3288ab742a5f809a6bc87b4a7d48cf50a (diff)
downloadredmine-cbd4af236cd34b54f250dfbdd94f3176582b7b6c.tar.gz
redmine-cbd4af236cd34b54f250dfbdd94f3176582b7b6c.zip
Adds issue relations to individual issue XML (#5305).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3729 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/show.xml.builder6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/issues/show.xml.builder b/app/views/issues/show.xml.builder
index 4b1373955..bd3448cc8 100644
--- a/app/views/issues/show.xml.builder
+++ b/app/views/issues/show.xml.builder
@@ -30,6 +30,12 @@ xml.issue do
xml.created_on @issue.created_on
xml.updated_on @issue.updated_on
+ xml.relations do
+ @issue.relations.select {|r| r.other_issue(@issue).visible? }.each do |relation|
+ xml.relation(:id => relation.id, :issue_id => relation.other_issue(@issue).id, :relation_type => relation.relation_type_for(@issue), :delay => relation.delay)
+ end
+ end
+
xml.changesets do
@issue.changesets.each do |changeset|
xml.changeset :revision => changeset.revision do