zero issues in a version should be displayed as DONE and not TODO

Fri, 09 Oct 2020 11:43:15 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 09 Oct 2020 11:43:15 +0200
changeset 116
d24354f21df5
parent 115
c27638a50c92
child 117
874ff787949b

zero issues in a version should be displayed as DONE and not TODO

src/main/java/de/uapcore/lightpit/entities/IssueSummary.java file | annotate | diff | comparison | revisions
--- a/src/main/java/de/uapcore/lightpit/entities/IssueSummary.java	Fri Oct 09 11:41:35 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/entities/IssueSummary.java	Fri Oct 09 11:43:15 2020 +0200
@@ -44,7 +44,7 @@
 
     public int getDonePercent() {
         int total = getTotal();
-        return total > 0 ? 100*done/total : 0;
+        return total > 0 ? 100*done/total : 100;
     }
 
     /**

mercurial