Project

General

Profile

Actions

Defect #10972

closed

Columns selection not displayed on the custom query form

Added by Vitor Mello almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
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

Also available in: Atom PDF