]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4923 Fix hard coded profile id
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 16 Jan 2014 17:27:36 +0000 (18:27 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 16 Jan 2014 17:27:36 +0000 (18:27 +0100)
sonar-server/src/main/java/org/sonar/server/qualityprofile/QProfiles.java

index 057d04e8fe23a1ad37968205883410112f2e9aa8..2eef58f9d0ae3922259e7f835fa587087d1f61da 100644 (file)
@@ -126,7 +126,7 @@ public class QProfiles implements ServerComponent {
   }
 
   public void setDefaultProfile(int profileId) {
-    operations.setDefaultProfile(1, UserSession.get());
+    operations.setDefaultProfile(profileId, UserSession.get());
   }
 
   @CheckForNull