From: Fabrice Bellingard Date: Fri, 21 Sep 2012 14:43:05 +0000 (+0200) Subject: SONAR-3822 Error on Active reviews per developer widget X-Git-Tag: 3.3~248 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aeaa56989dee0331aba21529c52975423e37859d;p=sonarqube.git SONAR-3822 Error on Active reviews per developer widget --- diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb index ae699f45e6c..c232402b39f 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/reviews/reviews_per_developer.html.erb @@ -26,7 +26,8 @@ counter_no_assignee += 1 end end - counter_max = reviews_by_dev.values.max + counter_max = 0 + counter_max = reviews_by_dev.values.max unless reviews_by_dev.empty? counter_max = counter_no_assignee if counter_no_assignee > counter_max div_id = "review-per-dev-widget-#{widget.id.to_s}"