summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-07 11:56:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-07 11:56:49 +0000
commit884c5be200dfb8c9e6caad24974ab22e7e3bea80 (patch)
treee164e416ece8fed608151bae3aa3eaf687881fda
parentad24563b1eac475dd0cb0fed3a61e1547becf39c (diff)
downloadredmine-884c5be200dfb8c9e6caad24974ab22e7e3bea80.tar.gz
redmine-884c5be200dfb8c9e6caad24974ab22e7e3bea80.zip
Backported r3368 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3385 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/issues_controller.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 06692cdec..43e0b5a23 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -57,12 +57,13 @@ class IssuesController < ApplicationController
sort_update({'id' => "#{Issue.table_name}.id"}.merge(@query.available_columns.inject({}) {|h, c| h[c.name.to_s] = c.sortable; h}))
if @query.valid?
- limit = per_page_option
- respond_to do |format|
- format.html { }
- format.atom { limit = Setting.feeds_limit.to_i }
- format.csv { limit = Setting.issues_export_limit.to_i }
- format.pdf { limit = Setting.issues_export_limit.to_i }
+ limit = case params[:format]
+ when 'csv', 'pdf'
+ Setting.issues_export_limit.to_i
+ when 'atom'
+ Setting.feeds_limit.to_i
+ else
+ per_page_option
end
@issue_count = @query.issue_count