Project

General

Profile

Patch #40798 » 0002-Optimize-FixedIssuesExtension-closed_percent-by-bypa.patch

Go MAEDA, 2024-06-13 10:54

View differences:

app/models/version.rb
54 54
  # Returns the percentage of issues that have been marked as 'closed'.
55 55
  def closed_percent
56 56
    return 0 if open_count + closed_count == 0
57
    return 100 if open_count == 0
57 58

  
58 59
    issues_progress(false)
59 60
  end
(2-2/3)