Actions
Defect #10972
closedColumns selection not displayed on the custom query form
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
The Default columns in Custom queries is not working on Redmine 2.0, the fieldset tag "columns" is not rendering.
Environment:
Redmine version 2.0.0.stable.9700
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.3
Environment production
Database adapter MySQL
The helper content_tag must be in a output embedding tag <%= %>, that will fix the issue.
The issue is in the view: redmine/app/views/queries/_form.html.erb.
Solution:
<%= 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 %> or <%= field_set_tag l(:field_column_names), :id => 'columns', :style => (query.has_default_columns? ? 'display:none;' : nil) do %> <%= render :partial => 'queries/columns', :locals => {:query => query}%> <% end %>
Actions