summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-25 12:37:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-25 12:37:28 +0000
commit0cc60f36314ed6362cb9332dfc88ac9f7a513600 (patch)
treec7647b9a0c1c74cb07a38321eb41067be1abbe0e
parent21607751c97ed193a8df78a615f40e7284106a46 (diff)
downloadredmine-0cc60f36314ed6362cb9332dfc88ac9f7a513600.tar.gz
redmine-0cc60f36314ed6362cb9332dfc88ac9f7a513600.zip
Use content_tag for empty option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9000 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/issue_categories_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issue_categories_controller.rb b/app/controllers/issue_categories_controller.rb
index c83246f0b..905ba66df 100644
--- a/app/controllers/issue_categories_controller.rb
+++ b/app/controllers/issue_categories_controller.rb
@@ -54,7 +54,7 @@ class IssueCategoriesController < ApplicationController
format.js do
# IE doesn't support the replace_html rjs method for select box options
render(:update) {|page| page.replace "issue_category_id",
- content_tag('select', '<option></option>' + options_from_collection_for_select(@project.issue_categories, 'id', 'name', @category.id), :id => 'issue_category_id', :name => 'issue[category_id]')
+ content_tag('select', content_tag('option') + options_from_collection_for_select(@project.issue_categories, 'id', 'name', @category.id), :id => 'issue_category_id', :name => 'issue[category_id]')
}
end
format.api { render :action => 'show', :status => :created, :location => issue_category_path(@category) }