]> source.dussan.org Git - redmine.git/commitdiff
Use content_tag for empty option.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Feb 2012 11:04:38 +0000 (11:04 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Feb 2012 11:04:38 +0000 (11:04 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8993 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/versions_controller.rb

index 7bcfcb35a2c751c88212897d017c99281f16ffb4..d7225344fb35ffc439b4ad85f8a7fe34f5a64ff7 100644 (file)
@@ -108,7 +108,7 @@ class VersionsController < ApplicationController
               page << 'hideModal();'
               # IE doesn't support the replace_html rjs method for select box options
               page.replace "issue_fixed_version_id",
-                content_tag('select', '<option></option>' + version_options_for_select(@project.shared_versions.open, @version), :id => 'issue_fixed_version_id', :name => 'issue[fixed_version_id]')
+                content_tag('select', content_tag('option') + version_options_for_select(@project.shared_versions.open, @version), :id => 'issue_fixed_version_id', :name => 'issue[fixed_version_id]')
             }
           end
           format.api do