Merged r12910 and r12911 (#16091).

git-svn-id: http://svn.redmine.org/redmine/branches/2.5-stable@12920 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-02-23 08:11:59 +00:00
parent 01aa2db0af
commit 805debddd0
2 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,9 @@ class IssuesController < ApplicationController
case params[:format]
when 'csv', 'pdf'
@limit = Setting.issues_export_limit.to_i
if params[:columns] == 'all'
@query.column_names = @query.available_inline_columns.map(&:name)
end
when 'atom'
@limit = Setting.feeds_limit.to_i
when 'xml', 'json'

View File

@ -334,6 +334,9 @@ class IssueQuery < Query
offset(options[:offset])
scope = scope.preload(:custom_values)
if has_column?(:author)
scope = scope.preload(:author)
end
issues = scope.all