Feature #24015

Do not hide estimated_hours label when value is nil

Added by Luka L├╝dicke over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:


Target version:3.4.0


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?

Associated revisions

Revision 15906
Added by Jean-Philippe Lang over 5 years ago

Do not hide estimated_hours when field is not disabled (#24015).


#1 Updated by Jean-Philippe Lang over 5 years ago

  • Assignee set to Jean-Philippe Lang
  • Target version set to 3.4.0

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.

#2 Updated by Jean-Philippe Lang over 5 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Fixed in r15906.

Also available in: Atom PDF