Preload issue relations when exporting issues to CSV with all columns (#16091).
git-svn-id: http://svn.redmine.org/redmine/trunk@12910 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
95e44a2e57
commit
15c85ededd
|
@ -62,6 +62,9 @@ class IssuesController < ApplicationController
|
||||||
case params[:format]
|
case params[:format]
|
||||||
when 'csv', 'pdf'
|
when 'csv', 'pdf'
|
||||||
@limit = Setting.issues_export_limit.to_i
|
@limit = Setting.issues_export_limit.to_i
|
||||||
|
if params[:columns] == 'all'
|
||||||
|
@query.column_names = @query.available_inline_columns.map(&:name)
|
||||||
|
end
|
||||||
when 'atom'
|
when 'atom'
|
||||||
@limit = Setting.feeds_limit.to_i
|
@limit = Setting.feeds_limit.to_i
|
||||||
when 'xml', 'json'
|
when 'xml', 'json'
|
||||||
|
|
Loading…
Reference in New Issue