diff options
author | Jonah Bishop <git@borngeek.com> | 2015-05-26 14:44:04 -0400 |
---|---|---|
committer | Jonah Bishop <git@borngeek.com> | 2015-05-26 14:57:53 -0400 |
commit | 8b92946b5407be42caa1e32a978555b94465905c (patch) | |
tree | 046a16247090838a6b2ab365f3d5961b2a7983ad /app/models/commit_range.rb | |
parent | b5ea355078589f5002e3601333130350f1a37678 (diff) | |
download | gitlab-ce-8b92946b5407be42caa1e32a978555b94465905c.tar.gz |
Change percent_complete rescue value from 100 to 0
The percent_complete method returns a value of 100 when a
ZeroDivisionError occurs. That seems like a very strange default for an
error case, and results in a bug when a milestone has no corresponding
issues (new, empty milestones show 100% completion). This commit changes
the rescue value to 0, and subsequently fixes #1656, which reported this
problem.
Diffstat (limited to 'app/models/commit_range.rb')
0 files changed, 0 insertions, 0 deletions