From bafb3e98a710b819599da5981765f5ff823aad75 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 24 Aug 2016 15:05:10 +0800 Subject: [PATCH] tip for sonar results --- app/controllers/quality_analysis_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/quality_analysis_controller.rb b/app/controllers/quality_analysis_controller.rb index 11aa57c9f..163b32f03 100644 --- a/app/controllers/quality_analysis_controller.rb +++ b/app/controllers/quality_analysis_controller.rb @@ -238,7 +238,7 @@ class QualityAnalysisController < ApplicationController @quality_analyses = QualityAnalysis.where(:project_id => @project.id).select{|qa| arr.include?(qa.sonar_name)} else languate_arr = ['ruby', 'c#', 'c++', 'c'] - qa_language = QualityAnalysis.where(:sonar_name => @resource_id).first.try(language) + qa_language = QualityAnalysis.where(:sonar_name => @resource_id).first.try(:language) if !qa_language.blank? && languate_arr.include?(qa_language) @language_flag = true end