]> source.dussan.org Git - redmine.git/commitdiff
added a setting option to set max number of issues in export
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 4 Feb 2007 15:45:38 +0000 (15:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 4 Feb 2007 15:45:38 +0000 (15:45 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@234 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb
app/views/settings/edit.rhtml
config/settings.yml
lang/de.yml
lang/en.yml
lang/es.yml
lang/fr.yml

index a5e7a276278a98f2f5c8b7242f24e2efad651ba3..7f2025ea1546a79bd9263368e88a34df2c4ba6d8 100644 (file)
@@ -260,7 +260,7 @@ class ProjectsController < ApplicationController
     @issues =  Issue.find :all, :order => sort_clause,\r
                                                :include => [ :author, :status, :tracker, :priority, {:custom_values => :custom_field} ],\r
                                                :conditions => @query.statement,\r
-                                               :limit => 500\r
+                                               :limit => Setting.issues_export_limit\r
 \r
     ic = Iconv.new('ISO-8859-1', 'UTF-8')    \r
     export = StringIO.new\r
@@ -315,7 +315,7 @@ class ProjectsController < ApplicationController
     @issues =  Issue.find :all, :order => sort_clause,\r
                                                :include => [ :author, :status, :tracker, :priority ],\r
                                                :conditions => @query.statement,\r
-                                               :limit => 500\r
+                                               :limit => Setting.issues_export_limit\r
                                                                                        \r
     @options_for_rfpdf ||= {}\r
     @options_for_rfpdf[:file_name] = "export.pdf"\r
index 04bb771e7560a87237c78361ef97d3e67db39e55..c4a8d03d417c49bbe29506f1e0ab344eab92e124 100644 (file)
@@ -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>
 
index 54b3a6c4edb8a9f267439d34e09f359ea6211c59..252600b58e7a11d462d11b8c3f4b9ffb3c2c5dfc 100644 (file)
@@ -34,6 +34,9 @@ password_lost:
 attachment_max_size:\r
   format: int\r
   default: 5120\r
+issues_export_limit:\r
+  format: int\r
+  default: 500\r
 mail_from:\r
   default: redmine@somenet.foo\r
 text_formatting:\r
index 2af2e12967f0eecbf34d71a05bfcc41fcc8e8b8b..2bee78a3c2361d6eec653520962a3bfb1fefc053 100644 (file)
@@ -147,6 +147,7 @@ setting_default_language: Rückstellung Sprache
 setting_login_required: Authent. erfordert\r
 setting_self_registration: Selbstausrichtung ermöglicht\r
 setting_attachment_max_size: Dateimaximumgröße\r
+setting_issues_export_limit: Issues export limit\r
 setting_mail_from: Emission address\r
 setting_host_name: Host Name\r
 setting_text_formatting: Textformatierung\r
index 6b75b662a2bb8c4f6a4bcaeb58f59b5881c22756..0696bda562c39fba51e56bf54e0ae3b86af73ccf 100644 (file)
@@ -147,6 +147,7 @@ setting_default_language: Default language
 setting_login_required: Authent. required\r
 setting_self_registration: Self-registration enabled\r
 setting_attachment_max_size: Attachment max. size\r
+setting_issues_export_limit: Issues export limit\r
 setting_mail_from: Emission mail address\r
 setting_host_name: Host name\r
 setting_text_formatting: Text formatting\r
index bc66b22d1ea1b320c21417dd152356f30cff1f2b..9e7cbe9d17d7144aa515c86dae3902e6d1984452 100644 (file)
@@ -147,6 +147,7 @@ setting_default_language: Lengua del defecto
 setting_login_required: Autentif. requerida\r
 setting_self_registration: Registro permitido\r
 setting_attachment_max_size: Tamaño máximo del fichero\r
+setting_issues_export_limit: Issues export limit\r
 setting_mail_from: Email de la emisión\r
 setting_host_name: Nombre de anfitrión\r
 setting_text_formatting: Formato de texto\r
index 5b164a46ac57c17793f9435bb9ae75fd5d772118..77cd839d9b76b90e6c8428f1c993fb7b28fbcf10 100644 (file)
@@ -147,6 +147,7 @@ setting_default_language: Langue par défaut
 setting_login_required: Authentif. obligatoire\r
 setting_self_registration: Enregistrement autorisé\r
 setting_attachment_max_size: Taille max des fichiers\r
+setting_issues_export_limit: Limite export demandes\r
 setting_mail_from: Adresse d'émission\r
 setting_host_name: Nom d'hôte\r
 setting_text_formatting: Formatage du texte\r