プロジェクト

全般

プロフィール

Vote #71879

完了

Columns selection not displayed on the custom query form

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
49
issue_org_id:
10972
author_id:
56226
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
43
ステータス-->[Closed]

説明

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 %>
        <%= l(:field_column_names) %>
        <%= 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 %>

journals

Fixed in r9702. Thanks for pointing this out.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン2.0.1_49 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0