Skip to content

Commit

Permalink
Don't display estimated hours when nil and total is 0.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.redmine.org/redmine/trunk@14405 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Jul 5, 2015
1 parent ec19374 commit 71942ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/issues/show.html.erb
Expand Up @@ -58,7 +58,7 @@
rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%"), :class => 'progress'
end
unless @issue.disabled_core_fields.include?('estimated_hours')
unless @issue.total_estimated_hours.nil?
if @issue.estimated_hours.present? || @issue.total_estimated_hours.to_f > 0
rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours'
end
end
Expand Down

0 comments on commit 71942ec

Please sign in to comment.