プロジェクト

全般

プロフィール

Vote #81724

未完了

Gantt error

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

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

0%

予定工数:
category_id:
0
version_id:
0
issue_org_id:
36260
author_id:
551211
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Hi Everybody,

I install version 4.2.3. The Gantt is working fine a long time. But, suddenly error below:

Completed 500 Internal Server Error in 1168ms (ActiveRecord: 47.1ms)
  
ActionView::Template::Error (undefined method `-@' for Mon, 01 Nov 2021:Date):
    132: 
    133:   # Width of the entire chart
    134:   g_width = ((@gantt.date_to - @gantt.date_from + 1) * zoom).to_i
    135:   @gantt.render(:top => headers_height + 8,
    136:                 :zoom => zoom,
    137:                 :g_width => g_width,
    138:                 :subject_width => subject_width)
  
lib/redmine/helpers/gantt.rb:637:in `coordinates'
lib/redmine/helpers/gantt.rb:371:in `line'
lib/redmine/helpers/gantt.rb:311:in `line_for_project'
lib/redmine/helpers/gantt.rb:275:in `render_object_row'
lib/redmine/helpers/gantt.rb:233:in `render_project'
lib/redmine/helpers/gantt.rb:222:in `block in render'
app/models/project.rb:966:in `block in project_tree'
app/models/project.rb:961:in `each'
app/models/project.rb:961:in `project_tree'
lib/redmine/helpers/gantt.rb:220:in `render'
app/views/gantts/show.html.erb:135:in `_app_views_gantts_show_html_erb__1650289389054086982_82240'
app/controllers/gantts_controller.rb:43:in `block (2 levels) in show'
app/controllers/gantts_controller.rb:42:in `show'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

表示するデータがありません

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

いいね!0