summaryrefslogtreecommitdiffstats
path: root/app/views/issues/show.api.rsb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/issues/show.api.rsb')
-rw-r--r--app/views/issues/show.api.rsb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/show.api.rsb b/app/views/issues/show.api.rsb
index 170aeb375..3493a29cd 100644
--- a/app/views/issues/show.api.rsb
+++ b/app/views/issues/show.api.rsb
@@ -27,7 +27,7 @@ api.issue do
api.array :relations do
@relations.each do |relation|
- api.relation(:id => relation.id, :issue_id => relation.other_issue(@issue).id, :relation_type => relation.relation_type_for(@issue), :delay => relation.delay)
+ api.relation(:id => relation.id, :issue_id => relation.issue_from_id, :issue_to_id => relation.issue_to_id, :relation_type => relation.relation_type_for(@issue), :delay => relation.delay)
end
end if include_in_api_response?('relations') && @relations.present?