diff --git a/app/controllers/feeds_controller.rb b/app/controllers/feeds_controller.rb index 214f80c9..bf03acbc 100644 --- a/app/controllers/feeds_controller.rb +++ b/app/controllers/feeds_controller.rb @@ -92,7 +92,7 @@ private # global feed scope = ["#{Project.table_name}.is_public=?", true] end - @find_options = {:conditions => scope, :limit => Setting.feeds_limit} + @find_options = {:conditions => scope, :limit => Setting.feeds_limit.to_i} return true end end diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 1de3788a..0dc6cba2 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -297,7 +297,7 @@ class ProjectsController < ApplicationController @issues = Issue.find :all, :order => sort_clause, :include => [ :assigned_to, :author, :status, :tracker, :priority, :project, {:custom_values => :custom_field} ], :conditions => @query.statement, - :limit => Setting.issues_export_limit + :limit => Setting.issues_export_limit.to_i ic = Iconv.new(l(:general_csv_encoding), 'UTF-8') export = StringIO.new @@ -356,7 +356,7 @@ class ProjectsController < ApplicationController @issues = Issue.find :all, :order => sort_clause, :include => [ :author, :status, :tracker, :priority, :project, :custom_values ], :conditions => @query.statement, - :limit => Setting.issues_export_limit + :limit => Setting.issues_export_limit.to_i @options_for_rfpdf ||= {} @options_for_rfpdf[:file_name] = "export.pdf"