From 857eb8efc022ff89ca0a1aaa11a3d4cbbe52d5ae Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Tue, 18 Sep 2012 12:29:32 +0200 Subject: [PATCH] SONAR-3800 The Timeline widget generates many warnings --- .../resources/org/sonar/plugins/core/widgets/timeline.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb index 17b0543a2e5..6bcd0d7c1fa 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb @@ -57,7 +57,7 @@ # Only Oracle returns a Time object, so let's parse this string if it's not a Time instance m_date = Time.parse(metric_data[:date]) unless m_date.is_a? Time m_value = sprintf("%0.02f", metric_data[:value]) - m_value_localized = ProjectMeasure.new (:metric => metric_map[metric_id]).format_numeric_value(metric_data[:value], {}) + m_value_localized = ProjectMeasure.new(:metric => metric_map[metric_id]).format_numeric_value(metric_data[:value], {}) js_data += "{x:d(" js_data += m_date.year.to_s js_data += "," -- 2.39.5