Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue GH-12 update

  • Loading branch information...
commit 5e476e0acccdf8210d22cad9cc9f247248de5663 1 parent 634d0fd
Marcin Jędras authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 app/controllers/issue_sprints_controller.rb
7 app/controllers/issue_sprints_controller.rb
View
@@ -126,11 +126,11 @@ def issue_status(issue)
case issue.done_ratio
when 0
- IssueStatus.find_by_name("New")
+ IssueStatus.find_by_position(1)
when 100
- IssueStatus.find_by_name("Resolved")
+ IssueStatus.find_by_position(3)
else
- IssueStatus.find_by_name("In Progress")
+ IssueStatus.find_by_position(2)
end
end
@@ -146,6 +146,7 @@ def done_ratio_to_status(issue)
end
def status_to_done_ratio(status)
+
case status
when "1"
0
Please sign in to comment.
Something went wrong with that request. Please try again.