Commit da426fa6 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

added a limit of 500 issues when exporting to csv or pdf

git-svn-id: http://redmine.rubyforge.org/svn/trunk@220 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 39e65a41
......@@ -259,7 +259,8 @@ class ProjectsController < ApplicationController
@issues = Issue.find :all, :order => sort_clause,
:include => [ :author, :status, :tracker, :priority, {:custom_values => :custom_field} ],
:conditions => @query.statement
:conditions => @query.statement,
:limit => 500
ic = Iconv.new('ISO-8859-1', 'UTF-8')
export = StringIO.new
......@@ -313,7 +314,8 @@ class ProjectsController < ApplicationController
@issues = Issue.find :all, :order => sort_clause,
:include => [ :author, :status, :tracker, :project, :custom_values ],
:conditions => @query.statement
:conditions => @query.statement,
:limit => 500
@options_for_rfpdf ||= {}
@options_for_rfpdf[:file_name] = "export.pdf"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment