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
This commit is contained in:
Jean-Philippe Lang 2007-02-02 16:05:54 +00:00
parent 39e65a41a2
commit da426fa652
1 changed files with 4 additions and 2 deletions

View File

@ -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"