summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-29 22:20:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-29 22:20:43 +0000
commit7fb03b1ca30a49dcfbd0b4d3c0ce250ba8cc6002 (patch)
tree8de289f15cf1a15846259db066967861cede06b4 /app
parent97f6315bd0c321ebaa2e8ec9d26344405f5e0e39 (diff)
downloadredmine-7fb03b1ca30a49dcfbd0b4d3c0ce250ba8cc6002.tar.gz
redmine-7fb03b1ca30a49dcfbd0b4d3c0ce250ba8cc6002.zip
Fixed: error on csv/pdf export and feeds (oracle)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@556 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/feeds_controller.rb2
-rw-r--r--app/controllers/projects_controller.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/feeds_controller.rb b/app/controllers/feeds_controller.rb
index 214f80c95..bf03acbc9 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 1de3788ac..0dc6cba26 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"