aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-03 11:02:18 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-03 11:03:23 +0200
commitaed2ea7a145c6f3b8a1fbcf61b3e230b92594e37 (patch)
tree03aad4fa2f0f7878627e8b683a9bde946c43a3ac
parent5912551222f76f9d86da242b377a225a5d704b66 (diff)
downloadsonarqube-aed2ea7a145c6f3b8a1fbcf61b3e230b92594e37.tar.gz
sonarqube-aed2ea7a145c6f3b8a1fbcf61b3e230b92594e37.zip
Fix availability of Inheritance filter in Coding Rules
-rw-r--r--sonar-server/src/main/coffee/coding-rules/views/filters/inheritance-filter-view.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/coffee/coding-rules/views/filters/inheritance-filter-view.coffee b/sonar-server/src/main/coffee/coding-rules/views/filters/inheritance-filter-view.coffee
index b3cda3c1be2..99e8fd57ec1 100644
--- a/sonar-server/src/main/coffee/coding-rules/views/filters/inheritance-filter-view.coffee
+++ b/sonar-server/src/main/coffee/coding-rules/views/filters/inheritance-filter-view.coffee
@@ -19,8 +19,8 @@ define [
qualityProfileKey = @qualityProfileFilter.get 'value'
if _.isArray(qualityProfileKey) && qualityProfileKey.length == 1
qualityProfile = @options.app.getQualityProfileByKey qualityProfileKey[0]
- if qualityProfile.parent
- parentQualityProfile = @options.app.getQualityProfile qualityProfile.parent
+ if qualityProfile.parentKey
+ parentQualityProfile = @options.app.getQualityProfile qualityProfile.parentKey
if parentQualityProfile
@makeActive()
else