]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5820 Fix display of quality profiles
authorStas Vilchik <vilchiks@gmail.com>
Fri, 26 Dec 2014 16:05:58 +0000 (17:05 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 26 Dec 2014 16:05:58 +0000 (17:05 +0100)
server/sonar-web/src/main/js/coding-rules/rule/rule-profiles-view.js

index 449282d756c7e155a22b1f0334915907dd7acd62..0aedc97918c0104c5a14d5e8e861dbab96edb66e 100644 (file)
@@ -31,10 +31,10 @@ define([
 
       if (qualityProfilesVisible) {
         if (this.model.get('isTemplate')) {
-          qualityProfilesVisible = !_.isEmpty(this.options.actives);
+          qualityProfilesVisible = this.collection.length > 0;
         }
         else {
-          qualityProfilesVisible = (this.options.app.canWrite || !_.isEmpty(this.options.actives));
+          qualityProfilesVisible = (this.options.app.canWrite || this.collection.length > 0);
         }
       }