diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-08-16 16:55:23 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-08-19 20:08:15 +0000 |
commit | 8278254af1aa48b99348156ca7cab139ff8b783b (patch) | |
tree | 67acd907e404cb9057eb9fafdef58b1e17e2a6f8 /server/sonar-webserver-api/src | |
parent | 9fd499fa98ca1c643b45d5a7d96aeb6fd09a999c (diff) | |
download | sonarqube-8278254af1aa48b99348156ca7cab139ff8b783b.tar.gz sonarqube-8278254af1aa48b99348156ca7cab139ff8b783b.zip |
SONAR-15142 - Add component qualifier to new value in Logs
Diffstat (limited to 'server/sonar-webserver-api/src')
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java b/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java index 70e31993887..178ec824b7a 100644 --- a/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java +++ b/server/sonar-webserver-api/src/main/java/org/sonar/server/plugins/PluginConsentVerifier.java @@ -54,7 +54,7 @@ public class PluginConsentVerifier implements Startable { if (hasExternalPlugins && NOT_ACCEPTED == PluginRiskConsent.valueOf(property.getValue())) { addWarningInSonarDotLog(); property.setValue(REQUIRED.name()); - dbClient.propertiesDao().saveProperty(session, property, null, null); + dbClient.propertiesDao().saveProperty(session, property, null, null, null); session.commit(); } else if (!hasExternalPlugins && REQUIRED == PluginRiskConsent.valueOf(property.getValue())) { dbClient.propertiesDao().deleteGlobalProperty(PLUGINS_RISK_CONSENT, session); diff --git a/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java b/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java index aabae7c3665..07d0d37da1c 100644 --- a/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java +++ b/server/sonar-webserver-api/src/main/java/org/sonar/server/project/ProjectDefaultVisibility.java @@ -46,6 +46,6 @@ public class ProjectDefaultVisibility { public void set(DbSession dbSession, Visibility visibility) { dbClient.propertiesDao().saveProperty(dbSession, new PropertyDto() .setKey(PROJECTS_DEFAULT_VISIBILITY_PROPERTY_NAME) - .setValue(visibility.getLabel()), null, null); + .setValue(visibility.getLabel()), null, null, null); } } |