Remove invalid escaping in version field (#4460).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3230 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-12-23 19:58:41 +00:00
parent 0704ac9444
commit 32bb0226e7
1 changed files with 2 additions and 2 deletions

View File

@ -74,11 +74,11 @@ module ProjectsHelper
def version_options_for_select(versions, selected=nil) def version_options_for_select(versions, selected=nil)
grouped = Hash.new {|h,k| h[k] = []} grouped = Hash.new {|h,k| h[k] = []}
versions.each do |version| versions.each do |version|
grouped[version.project.name] << [h(version.name), version.id] grouped[version.project.name] << [version.name, version.id]
end end
# Add in the selected # Add in the selected
if selected && !versions.include?(selected) if selected && !versions.include?(selected)
grouped[selected.project.name] << [h(selected.name), selected.id] grouped[selected.project.name] << [selected.name, selected.id]
end end
if grouped.keys.size > 1 if grouped.keys.size > 1