From da01438f2f310d2c16230a7d1270328fabc1a716 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 26 Dec 2014 17:05:58 +0100 Subject: [PATCH] SONAR-5820 Fix display of quality profiles --- .../src/main/js/coding-rules/rule/rule-profiles-view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.39.5