]> source.dussan.org Git - redmine.git/commitdiff
Fixed that columns selection in not displayed on the custom query form (#10972).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 21 May 2012 16:55:48 +0000 (16:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 21 May 2012 16:55:48 +0000 (16:55 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9702 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/queries/_form.html.erb
test/functional/queries_controller_test.rb

index cee8fbaa860e8269208e8e857f58a536640d9cdc..ba8c58070b841466ea6a2a4dc40affdc785f1067 100644 (file)
@@ -44,7 +44,7 @@
 <% end %>
 </fieldset>
 
-<% 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 %>
 <legend><%= l(:field_column_names) %></legend>
 <%= render :partial => 'queries/columns', :locals => {:query => query}%>
 <% end %>
index b9e4f417cf44b345b26eb7971f8549ac6a114a79..7cd823e6f1f0b4645f7052248909d2a433466331 100644 (file)
@@ -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