diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-21 16:10:14 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-21 16:10:14 +0200 |
commit | a5a0eac92d888517381841b49831319171537f15 (patch) | |
tree | 3a4f42924b10d137b2ddef1ebbfc266ace84319a /server/sonar-web | |
parent | fc6d8e2ddcca736718a073b1487869be2b6de5fc (diff) | |
download | sonarqube-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.rb | 2 |
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 = {} |