Merge branch 'rep_quality' of https://git.trustie.net/jacknudt/trustieforge into rep_quality

This commit is contained in:
huang 2016-08-24 15:13:00 +08:00
commit ba6d0e6926
1 changed files with 1 additions and 1 deletions

View File

@ -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