]> source.dussan.org Git - sonarqube.git/commitdiff
Fix availability of Inheritance filter in Coding Rules
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 3 Jul 2014 09:02:18 +0000 (11:02 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 3 Jul 2014 09:03:23 +0000 (11:03 +0200)
sonar-server/src/main/coffee/coding-rules/views/filters/inheritance-filter-view.coffee

index b3cda3c1be2c83b188795bf21186189a20c9730a..99e8fd57ec19cc0f5c28f788d12409dfcc98ffbe 100644 (file)
@@ -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