Project

General

Profile

Actions

Feature #24015

closed

Do not hide estimated_hours label when value is nil

Added by Luka Lüdicke over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

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?

Actions

Also available in: Atom PDF