@@ -57,12 +57,13 class IssuesController < ApplicationController | |||||
57 | sort_update({'id' => "#{Issue.table_name}.id"}.merge(@query.available_columns.inject({}) {|h, c| h[c.name.to_s] = c.sortable; h})) |
|
57 | sort_update({'id' => "#{Issue.table_name}.id"}.merge(@query.available_columns.inject({}) {|h, c| h[c.name.to_s] = c.sortable; h})) | |
58 |
|
58 | |||
59 | if @query.valid? |
|
59 | if @query.valid? | |
60 |
limit = |
|
60 | limit = case params[:format] | |
61 | respond_to do |format| |
|
61 | when 'csv', 'pdf' | |
62 | format.html { } |
|
62 | Setting.issues_export_limit.to_i | |
63 | format.atom { limit = Setting.feeds_limit.to_i } |
|
63 | when 'atom' | |
64 | format.csv { limit = Setting.issues_export_limit.to_i } |
|
64 | Setting.feeds_limit.to_i | |
65 | format.pdf { limit = Setting.issues_export_limit.to_i } |
|
65 | else | |
|
66 | per_page_option | |||
66 | end |
|
67 | end | |
67 |
|
68 | |||
68 | @issue_count = @query.issue_count |
|
69 | @issue_count = @query.issue_count |
General Comments 0
You need to be logged in to leave comments.
Login now