From a5a0eac92d888517381841b49831319171537f15 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 21 Jul 2014 16:10:14 +0200 Subject: Fix metrics returned when filter has saved the value of 'display' param to 'list' --- .../src/main/webapp/WEB-INF/app/controllers/measures_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/sonar-web/src/main') 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 = {} -- cgit v1.2.3