]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaw
authorStephane Gamard <stephane.gamard@sonarsource.com>
Wed, 8 Oct 2014 09:31:46 +0000 (11:31 +0200)
committerStephane Gamard <stephane.gamard@sonarsource.com>
Wed, 8 Oct 2014 09:31:46 +0000 (11:31 +0200)
sonar-core/src/main/java/org/sonar/core/rule/RuleParamDto.java

index 7d1436974bc3faf0f0998067e19931ba6600e9ef..5cfc054c7a2432cf0d7872fc84edbb0a79a4ccaa 100644 (file)
@@ -92,7 +92,8 @@ public class RuleParamDto {
   }
 
   public static RuleParamDto createFor(RuleDto rule) {
-    return new RuleParamDto();
+    // Should eventually switch to RuleKey (RuleKey is available before insert)
+    return new RuleParamDto().setRuleId(rule.getId());
   }
 
 }