]> source.dussan.org Git - redmine.git/commitdiff
Don't display estimated hours when nil and total is 0.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Jul 2015 11:47:28 +0000 (11:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Jul 2015 11:47:28 +0000 (11:47 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14405 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/show.html.erb

index b91b512a3a8ac8ed600ee157cba02cd02d0812b5..f980f0b401abf0932be75955444162f99cd7a74e 100644 (file)
@@ -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