aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-18 15:53:36 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-18 16:18:03 +0200
commitda86cf4808159ae70677f20b3d2b16383e2045ac (patch)
treea2babbe319d9e838b4a9abd61da05be5bfbd08d0 /plugins/sonar-core-plugin
parent6a5f7d47f8d5443cd394eca2b10db8bbe4887a75 (diff)
downloadsonarqube-da86cf4808159ae70677f20b3d2b16383e2045ac.tar.gz
sonarqube-da86cf4808159ae70677f20b3d2b16383e2045ac.zip
SONAR-5207 Fix display of treemap
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/treemap.html.erb7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/treemap.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/treemap.html.erb
index 313e13f2c0d..b12ca554f18 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/treemap.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/treemap.html.erb
@@ -22,10 +22,9 @@
<%
filter = MeasureFilter.new
filter.set_criteria_value(:base, @resource.key)
- filter.set_criteria_value(:display, 'treemap')
- filter.set_criteria_value(:tmSize, sizeMetric.key) if sizeMetric
- filter.set_criteria_value(:tmColor, colorMetric.key) if colorMetric
- filter.set_criteria_value(:tmHeight, widget_properties['heightInPercents'])
+ filter.set_criteria_value(:pageSize, 100)
+ filter.set_criteria_value(:page, 1)
+ filter.metrics=([sizeMetric, colorMetric].compact)
filter.execute(self, :user => current_user)
%>