aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-21 16:10:14 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-21 16:10:14 +0200
commita5a0eac92d888517381841b49831319171537f15 (patch)
tree3a4f42924b10d137b2ddef1ebbfc266ace84319a /server/sonar-web
parentfc6d8e2ddcca736718a073b1487869be2b6de5fc (diff)
downloadsonarqube-a5a0eac92d888517381841b49831319171537f15.tar.gz
sonarqube-a5a0eac92d888517381841b49831319171537f15.zip
Fix metrics returned when filter has saved the value of 'display' param to 'list'
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb
index 80fcefff882..2ec278531e9 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb
@@ -245,6 +245,8 @@ class MeasuresController < ApplicationController
filter.override_criteria(criteria_params)
filter.metrics= params[:metrics].split(',') if metrics
filter.require_links= display_links
+ # Force the display to none in case this value was saved to 'list' in the db
+ filter.set_criteria_value('display', 'none')
filter.execute(self, :user => current_user)
hash = {}