diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-04 11:09:26 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-04 11:09:26 +0100 |
commit | 181202a7bcc7764e16c05f8ad93ef748dcc1985b (patch) | |
tree | 98a053b0d16442b29dbf5c2c38192c874568e05a /sonar-server | |
parent | a14a0644c2a27ddec22f23925578a40aa6fa8302 (diff) | |
download | sonarqube-181202a7bcc7764e16c05f8ad93ef748dcc1985b.tar.gz sonarqube-181202a7bcc7764e16c05f8ad93ef748dcc1985b.zip |
Fix restoring of backups when rules not found
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java b/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java index 143427d6457..4dcd6e1b1e3 100644 --- a/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java +++ b/sonar-server/src/main/java/org/sonar/server/configuration/ProfilesBackup.java @@ -113,7 +113,7 @@ public class ProfilesBackup implements Backupable { } private void importActiveRules(RulesDao rulesDao, RulesProfile profile) { - for (Iterator<ActiveRule> iar = profile.getActiveRules().iterator(); iar.hasNext();) { + for (Iterator<ActiveRule> iar = profile.getActiveRules(true).iterator(); iar.hasNext();) { ActiveRule activeRule = iar.next(); Rule unMarshalledRule = activeRule.getRule(); Rule matchingRuleInDb = rulesDao.getRuleByKey(unMarshalledRule.getRepositoryKey(), unMarshalledRule.getKey()); |