aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-09-14 09:59:18 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-09-14 09:59:18 +0000
commit91b4e663c59c2fd03b64ce3746617e44aeab2bdd (patch)
treee6f5ca160de886d4ade86642d2f572d18de024ff /sonar-server
parent3a268c327d4cd7dc1e1e2530d2733d42a62e0d09 (diff)
downloadsonarqube-91b4e663c59c2fd03b64ce3746617e44aeab2bdd.tar.gz
sonarqube-91b4e663c59c2fd03b64ce3746617e44aeab2bdd.zip
move deprecated check api to sonar-deprecated
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/rules/ProfilesConsole.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/rules/ProfilesConsole.java b/sonar-server/src/main/java/org/sonar/server/rules/ProfilesConsole.java
index 934575f3f47..e538f7c80cf 100644
--- a/sonar-server/src/main/java/org/sonar/server/rules/ProfilesConsole.java
+++ b/sonar-server/src/main/java/org/sonar/server/rules/ProfilesConsole.java
@@ -129,6 +129,8 @@ public final class ProfilesConsole implements ServerComponent {
ProfileImporter importer = getProfileImporter(importerKey);
RulesProfile profile = importer.importProfile(new StringReader(profileDefinition), messages);
if (!messages.hasErrors()) {
+ profile.setName(profileName);
+ profile.setLanguage(language);
DatabaseSession session = sessionFactory.getSession();
session.saveWithoutFlush(profile);
session.commit();