From aeaa56989dee0331aba21529c52975423e37859d Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Fri, 21 Sep 2012 16:43:05 +0200 Subject: [PATCH] SONAR-3822 Error on Active reviews per developer widget --- .../core/widgets/reviews/reviews_per_developer.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}" -- 2.39.5