Merged r8804 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@9113 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-03-05 12:46:41 +00:00
parent 92dde0d75f
commit 39af3f1b79
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -253,7 +253,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?