]> source.dussan.org Git - redmine.git/commitdiff
added a limit of 500 issues when exporting to csv or pdf
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 2 Feb 2007 16:05:54 +0000 (16:05 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 2 Feb 2007 16:05:54 +0000 (16:05 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@220 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index 942dccb7cee4d39b84a7bdb332c85773aaaa0eed..eec6977d091dcff136c96f08fef991cd64e23b57 100644 (file)
@@ -259,7 +259,8 @@ class ProjectsController < ApplicationController
                                        \r
     @issues =  Issue.find :all, :order => sort_clause,\r
                                                :include => [ :author, :status, :tracker, :priority, {:custom_values => :custom_field} ],\r
-                                               :conditions => @query.statement\r
+                                               :conditions => @query.statement,\r
+                                               :limit => 500\r
 \r
     ic = Iconv.new('ISO-8859-1', 'UTF-8')    \r
     export = StringIO.new\r
@@ -313,7 +314,8 @@ class ProjectsController < ApplicationController
                                        \r
     @issues =  Issue.find :all, :order => sort_clause,\r
                                                :include => [ :author, :status, :tracker, :project, :custom_values ],\r
-                                               :conditions => @query.statement\r
+                                               :conditions => @query.statement,\r
+                                               :limit => 500\r
                                                                                        \r
     @options_for_rfpdf ||= {}\r
     @options_for_rfpdf[:file_name] = "export.pdf"\r