diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-09-07 10:18:16 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-09-07 10:18:16 +0200 |
commit | cfe502024cc136133bd3eae708f325323aab6dc6 (patch) | |
tree | 4882455870d8dc2ed64a44b0d2091b83769b7662 /plugins | |
parent | 888a438e8f85b39f8e7cb2dec45244902c0849cb (diff) | |
download | sonarqube-cfe502024cc136133bd3eae708f325323aab6dc6.tar.gz sonarqube-cfe502024cc136133bd3eae708f325323aab6dc6.zip |
SONAR-2074 Fix bug with Derby and add to "History" category
Diffstat (limited to 'plugins')
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimelineWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimelineWidget.java index 0877231f2c2..07487898e60 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimelineWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimelineWidget.java @@ -21,10 +21,12 @@ package org.sonar.plugins.core.widgets; import org.sonar.api.web.AbstractRubyTemplate; import org.sonar.api.web.RubyRailsWidget; +import org.sonar.api.web.WidgetCategory; import org.sonar.api.web.WidgetProperties; import org.sonar.api.web.WidgetProperty; import org.sonar.api.web.WidgetPropertyType; +@WidgetCategory({ "History" }) @WidgetProperties( { @WidgetProperty(key = "chartTitle", type = WidgetPropertyType.STRING), 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 7ca169be837..945ee82d7c1 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 @@ -56,7 +56,7 @@ if index == 0 # we fill the js_snapshots array (no need to do this more than once) js_snapshots += "{sid:" - js_snapshots += metric_data[:sid] + js_snapshots += metric_data[:sid].to_s js_snapshots += ",d:\"" js_snapshots += l m_date, :format => :long js_snapshots += "\"}," |