summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-06 14:44:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-06 14:44:40 +0000
commitdfbab5d61ee7b106a715a353074053041312b9b0 (patch)
tree9968c9732f323e828461fe519189dfa78bc071d1 /app
parent6f1d553cff1affcd7d819636444c7416b153636c (diff)
downloadredmine-dfbab5d61ee7b106a715a353074053041312b9b0.tar.gz
redmine-dfbab5d61ee7b106a715a353074053041312b9b0.zip
Fixed "can't convert Fixnum into String" error on projects with numerical identifier (#10135).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8804 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 8a79ed674..407f723c4 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -274,7 +274,7 @@ class Project < ActiveRecord::Base
def to_param
# id is used for projects with a numeric identifier (compatibility)
- @to_param ||= (identifier.to_s =~ %r{^\d*$} ? id : identifier)
+ @to_param ||= (identifier.to_s =~ %r{^\d*$} ? id.to_s : identifier)
end
def active?