]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5137 Fix display of activation view when there is no profile available
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 13 Jun 2014 09:51:36 +0000 (11:51 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 13 Jun 2014 09:51:36 +0000 (11:51 +0200)
sonar-server/src/main/coffee/coding-rules/views/coding-rules-quality-profile-activation-view.coffee

index 6b7a82cd3a5b5e38ee4a08bb5ffad40afc4147d3..88ce014b86255ea5f1516e8c045fe7fc2d87f9fb 100644 (file)
@@ -120,4 +120,4 @@ define [
         params: params
         qualityProfiles: availableProfiles
         severities: ['BLOCKER', 'CRITICAL', 'MAJOR', 'MINOR', 'INFO']
-        saveEnabled: not _.isEmpty(availableProfiles) or @model.get('qProfile')
+        saveEnabled: not _.isEmpty(availableProfiles) or (@model and @model.get('qProfile'))