Fixed that columns selection in not displayed on the custom query form (#10972).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9702 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ae8830ed61
commit
1ab9e42b9b
|
@ -44,7 +44,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</fieldset>
|
</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>
|
<legend><%= l(:field_column_names) %></legend>
|
||||||
<%= render :partial => 'queries/columns', :locals => {:query => query}%>
|
<%= render :partial => 'queries/columns', :locals => {:query => query}%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -36,6 +36,10 @@ class QueriesControllerTest < ActionController::TestCase
|
||||||
:name => 'query_is_for_all',
|
:name => 'query_is_for_all',
|
||||||
:checked => nil,
|
:checked => nil,
|
||||||
:disabled => nil }
|
:disabled => nil }
|
||||||
|
assert_select 'select[name=?]', 'c[]' do
|
||||||
|
assert_select 'option[value=tracker]'
|
||||||
|
assert_select 'option[value=subject]'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_new_global_query
|
def test_new_global_query
|
||||||
|
|
Loading…
Reference in New Issue