プロジェクト

全般

プロフィール

Vote #77879

完了

Do not hide estimated_hours label when value is nil

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

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

0%

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

説明

Currently the estimated_hours is completely hidden from Issue Show view when the value is nil or 0.

That is undesirable. The fact that there has not been a value set is valuable information and should be shown more explicit.

My proposed change is the following code in the issues/show.html.erb Template:


    # override Redmine behaviour and always show the estimated hours but with empty value
    rows.right l(:field_estimated_hours), (@issue.estimated_hours.present? || @issue.total_estimated_hours.to_f > 0) ? issue_estimated_hours_details(@issue) : '',
               :class => 'estimated-hours'

What do you think of it?


journals

I agree, it used to be hidden if empty for people who do not want to use it. But now that we can enable/disable standard fields on each tracker, we should not hide it when it's enabled.
--------------------------------------------------------------------------------
Fixed in r15906.
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0