summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-29 13:01:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-29 13:01:09 +0000
commitc292971390fff376fc1b62c4bb90fc499ba67b14 (patch)
tree211efc41869248b1af1813a600065af08bae5ba7
parent1b6da80e16dd0cb200588422dfc5a655cb3b94f0 (diff)
downloadredmine-c292971390fff376fc1b62c4bb90fc499ba67b14.tar.gz
redmine-c292971390fff376fc1b62c4bb90fc499ba67b14.zip
Display visible relations in API response.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10514 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/issues_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 24ab2e0a3..339399329 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -81,7 +81,7 @@ class IssuesController < ApplicationController
respond_to do |format|
format.html { render :template => 'issues/index', :layout => !request.xhr? }
format.api {
- Issue.load_relations(@issues) if include_in_api_response?('relations')
+ Issue.load_visible_relations(@issues) if include_in_api_response?('relations')
}
format.atom { render_feed(@issues, :title => "#{@project || Setting.app_title}: #{l(:label_issue_plural)}") }
format.csv { send_data(issues_to_csv(@issues, @project, @query, params), :type => 'text/csv; header=present', :filename => 'export.csv') }