Preload authors for /issues API calls.

git-svn-id: http://svn.redmine.org/redmine/trunk@12912 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-02-22 11:22:43 +00:00
parent 9b6f53219f
commit 411ddaf701

View File

@ -69,6 +69,7 @@ class IssuesController < ApplicationController
@limit = Setting.feeds_limit.to_i
when 'xml', 'json'
@offset, @limit = api_offset_and_limit
@query.column_names = %w(author)
else
@limit = per_page_option
end