]> source.dussan.org Git - sonarqube.git/commitdiff
fix SONAR-5820/SONAR-5978 suggest only profiles on selected languages
authorStas Vilchik <vilchiks@gmail.com>
Mon, 19 Jan 2015 09:53:43 +0000 (10:53 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 19 Jan 2015 09:53:43 +0000 (10:53 +0100)
server/sonar-web/src/main/js/coding-rules/bulk-change-modal-view.js

index cd0e4b5c8eb473de499b39d00473389f8ab625c0..c1b0a8c32144fd18f0b734a19b5f89c674d0b53d 100644 (file)
@@ -72,7 +72,7 @@ define([
 
     getAvailableQualityProfiles: function () {
       var queryLanguages = this.options.app.state.get('query').languages,
-          languages = queryLanguages.length > 0 ? queryLanguages.split(',') : [],
+          languages = queryLanguages && queryLanguages.length > 0 ? queryLanguages.split(',') : [],
           profiles = this.options.app.qualityProfiles;
       if (languages.length > 0) {
         profiles = _.filter(profiles, function (profile) {