##// END OF EJS Templates
Use content_tag for empty option....
Jean-Philippe Lang -
r8880:0cc60f36314e
parent child
Show More
@@ -54,7 +54,7 class IssueCategoriesController < ApplicationController
54 format.js do
54 format.js do
55 # IE doesn't support the replace_html rjs method for select box options
55 # IE doesn't support the replace_html rjs method for select box options
56 render(:update) {|page| page.replace "issue_category_id",
56 render(:update) {|page| page.replace "issue_category_id",
57 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]')
57 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]')
58 }
58 }
59 end
59 end
60 format.api { render :action => 'show', :status => :created, :location => issue_category_path(@category) }
60 format.api { render :action => 'show', :status => :created, :location => issue_category_path(@category) }
General Comments 0
You need to be logged in to leave comments. Login now