From 64cf3d0bf39b58267118b78f2fe2871ed3f9f2ad Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 11 Dec 2013 11:59:44 +0100 Subject: [PATCH] SONAR-4960 Fix component name that was not displayed --- .../webapp/WEB-INF/app/controllers/measures_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb index fe7548a7b55..d5f6fe32651 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/measures_controller.rb @@ -249,8 +249,8 @@ class MeasuresController < ApplicationController component = row.snapshot.resource component_hash = {} component_hash[:key] = component.key - component_hash[:name] = component.name if fields.include? 'name' && component.name - component_hash[:longName] = component.long_name if fields.include? 'longName' && component.long_name + component_hash[:name] = component.name if fields.include?('name') && component.name + component_hash[:longName] = component.long_name if fields.include?('longName') && component.long_name component_hash[:qualifier] = component.qualifier if component.qualifier component_hash[:favorite] = logged_in? && current_user.favourite?(component.id) if fields.include?('favourite') component_hash[:date] = Api::Utils.format_datetime(row.snapshot.created_at) if fields.include?('date') && row.snapshot.created_at -- 2.39.5