diff --git a/app/views/queries/_form.html.erb b/app/views/queries/_form.html.erb
index cee8fbaa8..ba8c58070 100644
--- a/app/views/queries/_form.html.erb
+++ b/app/views/queries/_form.html.erb
@@ -44,7 +44,7 @@
<% end %>
-<% content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %>
+<%= content_tag 'fieldset', :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %>
<%= render :partial => 'queries/columns', :locals => {:query => query}%>
<% end %>
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb
index b9e4f417c..7cd823e6f 100644
--- a/test/functional/queries_controller_test.rb
+++ b/test/functional/queries_controller_test.rb
@@ -36,6 +36,10 @@ class QueriesControllerTest < ActionController::TestCase
:name => 'query_is_for_all',
:checked => nil,
:disabled => nil }
+ assert_select 'select[name=?]', 'c[]' do
+ assert_select 'option[value=tracker]'
+ assert_select 'option[value=subject]'
+ end
end
def test_new_global_query