プロジェクト

全般

プロフィール

Vote #80581

完了

Internal Error when issue text custom field is shown in Spent time query results

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
13
version_id:
160
issue_org_id:
32768
author_id:
115781
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
127
ステータス-->[Closed]

説明

On Spent Time tab, when selecting, under Options->Show, a custom field of long text type, I get internal error:

Processing by TimelogController#index as HTML
  Parameters: {"c"=>["spent_on", "user", "activity", "issue", "comments", "hours", "issue.cf_47"], "columns"=>"month", "criteria"=>[""], "encoding"=>"ISO-8859-1", "f"=>["spent_on", ""], "group_by"=>"", "op"=>{"spent_on"=>"*"}, "set_filter"=>"1", "sort"=>"spent_on:desc", "t"=>["hours", ""], "utf8"=>"✓", "project_id"=>"test"}
  Current user: admin (id=164)
  Rendering timelog/index.html.erb within layouts/base
  Rendered queries/_filters.html.erb (3.5ms)
  Rendered queries/_columns.html.erb (1.3ms)
  Rendered queries/_query_form.html.erb (6.6ms)
  Rendered timelog/_date_range.html.erb (7.9ms)
  Rendered timelog/_list.html.erb (299.2ms)
  Rendered timelog/index.html.erb within layouts/base (377.5ms)
Completed 500 Internal Server Error in 468ms (ActiveRecord: 24.3ms)
  
ActionView::Template::Error (undefined local variable or method `issue' for #<#:0x000000000ca474f8>
Did you mean?  issue_url):
    50:         <%= link_to_context_menu %>
    51:     
    52:   
    53:   <% @query.block_columns.each do |column|
    54:        if (text = column_content(column, issue)) && text.present? -%>
    55:   
    56:     
  
app/views/timelog/_list.html.erb:53:in `block (3 levels) in _app_views_timelog__list_html_erb__281615036_105133860'
app/views/timelog/_list.html.erb:52:in `each'
app/views/timelog/_list.html.erb:52:in `block (2 levels) in _app_views_timelog__list_html_erb__281615036_105133860'
app/helpers/queries_helper.rb:154:in `block in grouped_query_results'
app/helpers/queries_helper.rb:139:in `each'
app/helpers/queries_helper.rb:139:in `grouped_query_results'
app/views/timelog/_list.html.erb:17:in `block in _app_views_timelog__list_html_erb__281615036_105133860'
app/views/timelog/_list.html.erb:1:in `_app_views_timelog__list_html_erb__281615036_105133860'
app/views/timelog/index.html.erb:27:in `_app_views_timelog_index_html_erb__57510300_106046780'
app/controllers/timelog_controller.rb:57:in `block (2 levels) in index'
app/controllers/timelog_controller.rb:51:in `index'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'

environment:

Environment:
  Redmine version                4.1.0.stable
  Ruby version                   2.5.7-p206 (2019-10-01) [x64-mingw32]
  Rails version                  5.2.4.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.11.1
  Git                            2.19.1
  Filesystem                     
Redmine plugins:
  no plugin installed

journals

--------------------------------------------------------------------------------
The problem in @timelog/_list.html.erb@ was introduced by #16843, but until #26081 was implemented, there were no inline columns for @TimeEntryQuery@.

I'll post soon the fix.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Here is the fix.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the fix. Thank you.
--------------------------------------------------------------------------------


related_issues

relates,Closed,16843,Enable grouping on time entries list
relates,Closed,26081,Allow full_width_layout long-text custom fields to appear in the issue list like 'Description' (as a block column)

Admin Redmine さんが3年以上前に更新

  • カテゴリTime tracking_13 にセット
  • 対象バージョン4.1.1_160 にセット

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

いいね!0
いいね!0