diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-02-03 10:41:16 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-02-03 15:53:00 +0100 |
commit | 985c9d3089bfacf632470a5310112ea265323cc5 (patch) | |
tree | c802e42cee85be8871dc1a5ef9596fabe571d1dd /plugins/sonar-core-plugin | |
parent | 9c0adaca9446244ddd27f451bde9e2053b5a0f40 (diff) | |
download | sonarqube-985c9d3089bfacf632470a5310112ea265323cc5.tar.gz sonarqube-985c9d3089bfacf632470a5310112ea265323cc5.zip |
SONAR-5741 Correctly display TreeMap in case when size metric is null for some resources
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/treemap.html.erb | 2 |
1 files changed, 2 insertions, 0 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 4a5f9612a88..ed1c68fb0a4 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 @@ -25,6 +25,8 @@ filter.set_criteria_value(:onBaseComponents, 'true') filter.set_criteria_value(:pageSize, 100) filter.set_criteria_value(:page, 1) + filter.set_criteria_value(:sort, 'metric:' + sizeMetric.name) + filter.set_criteria_value(:asc, false) filter.metrics=([sizeMetric, colorMetric].compact) filter.execute(self, :user => current_user) %> |