From: Stas Vilchik Date: Fri, 26 Dec 2014 16:05:58 +0000 (+0100) Subject: SONAR-5820 Fix display of quality profiles X-Git-Tag: latest-silver-master-#65~400 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=da01438f2f310d2c16230a7d1270328fabc1a716;p=sonarqube.git SONAR-5820 Fix display of quality profiles --- diff --git a/server/sonar-web/src/main/js/coding-rules/rule/rule-profiles-view.js b/server/sonar-web/src/main/js/coding-rules/rule/rule-profiles-view.js index 449282d756c..0aedc97918c 100644 --- a/server/sonar-web/src/main/js/coding-rules/rule/rule-profiles-view.js +++ b/server/sonar-web/src/main/js/coding-rules/rule/rule-profiles-view.js @@ -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); } }