summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-04 15:45:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-04 15:45:38 +0000
commit7dd312b1ac6a478c8d70b8e6041c05f916dcbf09 (patch)
treea83961fc254db6291878162fe8fef7b274d5da03 /app
parent4ff7b395dd7a1a3d1173d897b6cab76efe6127f4 (diff)
downloadredmine-7dd312b1ac6a478c8d70b8e6041c05f916dcbf09.tar.gz
redmine-7dd312b1ac6a478c8d70b8e6041c05f916dcbf09.zip
added a setting option to set max number of issues in export
git-svn-id: http://redmine.rubyforge.org/svn/trunk@234 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb4
-rw-r--r--app/views/settings/edit.rhtml3
2 files changed, 5 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index a5e7a2762..7f2025ea1 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -260,7 +260,7 @@ class ProjectsController < ApplicationController
@issues = Issue.find :all, :order => sort_clause,
:include => [ :author, :status, :tracker, :priority, {:custom_values => :custom_field} ],
:conditions => @query.statement,
- :limit => 500
+ :limit => Setting.issues_export_limit
ic = Iconv.new('ISO-8859-1', 'UTF-8')
export = StringIO.new
@@ -315,7 +315,7 @@ class ProjectsController < ApplicationController
@issues = Issue.find :all, :order => sort_clause,
:include => [ :author, :status, :tracker, :priority ],
:conditions => @query.statement,
- :limit => 500
+ :limit => Setting.issues_export_limit
@options_for_rfpdf ||= {}
@options_for_rfpdf[:file_name] = "export.pdf"
diff --git a/app/views/settings/edit.rhtml b/app/views/settings/edit.rhtml
index 04bb771e7..c4a8d03d4 100644
--- a/app/views/settings/edit.rhtml
+++ b/app/views/settings/edit.rhtml
@@ -26,6 +26,9 @@
<p><label><%= l(:setting_attachment_max_size) %></label>
<%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
+<p><label><%= l(:setting_issues_export_limit) %></label>
+<%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
+
<p><label><%= l(:setting_mail_from) %></label>
<%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>