]> source.dussan.org Git - redmine.git/commitdiff
Do not hide estimated_hours when field is not disabled (#24015).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 10 Oct 2016 08:30:35 +0000 (08:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 10 Oct 2016 08:30:35 +0000 (08:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15906 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/show.html.erb

index 2cbff32e512ac19015ead0dd96052c40d0bfd64f..f8849052dd7cbf5382597b7f20e0fff93f3adb5a 100644 (file)
@@ -58,9 +58,7 @@
     rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :legend => "#{@issue.done_ratio}%"), :class => 'progress'
   end
   unless @issue.disabled_core_fields.include?('estimated_hours')
-    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
+    rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours'
   end
   if User.current.allowed_to_view_all_time_entries?(@project)
     if @issue.total_spent_hours > 0