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
This commit is contained in:
parent
4ff7b395dd
commit
7dd312b1ac
|
@ -260,7 +260,7 @@ class ProjectsController < ApplicationController
|
||||||
@issues = Issue.find :all, :order => sort_clause,
|
@issues = Issue.find :all, :order => sort_clause,
|
||||||
:include => [ :author, :status, :tracker, :priority, {:custom_values => :custom_field} ],
|
:include => [ :author, :status, :tracker, :priority, {:custom_values => :custom_field} ],
|
||||||
:conditions => @query.statement,
|
:conditions => @query.statement,
|
||||||
:limit => 500
|
:limit => Setting.issues_export_limit
|
||||||
|
|
||||||
ic = Iconv.new('ISO-8859-1', 'UTF-8')
|
ic = Iconv.new('ISO-8859-1', 'UTF-8')
|
||||||
export = StringIO.new
|
export = StringIO.new
|
||||||
|
@ -315,7 +315,7 @@ class ProjectsController < ApplicationController
|
||||||
@issues = Issue.find :all, :order => sort_clause,
|
@issues = Issue.find :all, :order => sort_clause,
|
||||||
:include => [ :author, :status, :tracker, :priority ],
|
:include => [ :author, :status, :tracker, :priority ],
|
||||||
:conditions => @query.statement,
|
:conditions => @query.statement,
|
||||||
:limit => 500
|
:limit => Setting.issues_export_limit
|
||||||
|
|
||||||
@options_for_rfpdf ||= {}
|
@options_for_rfpdf ||= {}
|
||||||
@options_for_rfpdf[:file_name] = "export.pdf"
|
@options_for_rfpdf[:file_name] = "export.pdf"
|
||||||
|
|
|
@ -26,6 +26,9 @@
|
||||||
<p><label><%= l(:setting_attachment_max_size) %></label>
|
<p><label><%= l(:setting_attachment_max_size) %></label>
|
||||||
<%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
|
<%= 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>
|
<p><label><%= l(:setting_mail_from) %></label>
|
||||||
<%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
|
<%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,9 @@ password_lost:
|
||||||
attachment_max_size:
|
attachment_max_size:
|
||||||
format: int
|
format: int
|
||||||
default: 5120
|
default: 5120
|
||||||
|
issues_export_limit:
|
||||||
|
format: int
|
||||||
|
default: 500
|
||||||
mail_from:
|
mail_from:
|
||||||
default: redmine@somenet.foo
|
default: redmine@somenet.foo
|
||||||
text_formatting:
|
text_formatting:
|
||||||
|
|
|
@ -147,6 +147,7 @@ setting_default_language: Rückstellung Sprache
|
||||||
setting_login_required: Authent. erfordert
|
setting_login_required: Authent. erfordert
|
||||||
setting_self_registration: Selbstausrichtung ermöglicht
|
setting_self_registration: Selbstausrichtung ermöglicht
|
||||||
setting_attachment_max_size: Dateimaximumgröße
|
setting_attachment_max_size: Dateimaximumgröße
|
||||||
|
setting_issues_export_limit: Issues export limit
|
||||||
setting_mail_from: Emission address
|
setting_mail_from: Emission address
|
||||||
setting_host_name: Host Name
|
setting_host_name: Host Name
|
||||||
setting_text_formatting: Textformatierung
|
setting_text_formatting: Textformatierung
|
||||||
|
|
|
@ -147,6 +147,7 @@ setting_default_language: Default language
|
||||||
setting_login_required: Authent. required
|
setting_login_required: Authent. required
|
||||||
setting_self_registration: Self-registration enabled
|
setting_self_registration: Self-registration enabled
|
||||||
setting_attachment_max_size: Attachment max. size
|
setting_attachment_max_size: Attachment max. size
|
||||||
|
setting_issues_export_limit: Issues export limit
|
||||||
setting_mail_from: Emission mail address
|
setting_mail_from: Emission mail address
|
||||||
setting_host_name: Host name
|
setting_host_name: Host name
|
||||||
setting_text_formatting: Text formatting
|
setting_text_formatting: Text formatting
|
||||||
|
|
|
@ -147,6 +147,7 @@ setting_default_language: Lengua del defecto
|
||||||
setting_login_required: Autentif. requerida
|
setting_login_required: Autentif. requerida
|
||||||
setting_self_registration: Registro permitido
|
setting_self_registration: Registro permitido
|
||||||
setting_attachment_max_size: Tamaño máximo del fichero
|
setting_attachment_max_size: Tamaño máximo del fichero
|
||||||
|
setting_issues_export_limit: Issues export limit
|
||||||
setting_mail_from: Email de la emisión
|
setting_mail_from: Email de la emisión
|
||||||
setting_host_name: Nombre de anfitrión
|
setting_host_name: Nombre de anfitrión
|
||||||
setting_text_formatting: Formato de texto
|
setting_text_formatting: Formato de texto
|
||||||
|
|
|
@ -147,6 +147,7 @@ setting_default_language: Langue par défaut
|
||||||
setting_login_required: Authentif. obligatoire
|
setting_login_required: Authentif. obligatoire
|
||||||
setting_self_registration: Enregistrement autorisé
|
setting_self_registration: Enregistrement autorisé
|
||||||
setting_attachment_max_size: Taille max des fichiers
|
setting_attachment_max_size: Taille max des fichiers
|
||||||
|
setting_issues_export_limit: Limite export demandes
|
||||||
setting_mail_from: Adresse d'émission
|
setting_mail_from: Adresse d'émission
|
||||||
setting_host_name: Nom d'hôte
|
setting_host_name: Nom d'hôte
|
||||||
setting_text_formatting: Formatage du texte
|
setting_text_formatting: Formatage du texte
|
||||||
|
|
Loading…
Reference in New Issue