From 11a4c829eb81f895f3b19b892e002071b8608316 Mon Sep 17 00:00:00 2001 From: Lukasz Jarocki Date: Wed, 18 Aug 2021 15:12:29 +0200 Subject: [PATCH] SONAR-15286 fixing a bug where sometimes we didnt pass information about component key to the audit table --- .../org/sonar/server/permission/PermissionTemplateService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/permission/PermissionTemplateService.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/permission/PermissionTemplateService.java index 316e68f7e0a..487cf1cfa67 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/permission/PermissionTemplateService.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/permission/PermissionTemplateService.java @@ -154,7 +154,7 @@ public class PermissionTemplateService { .setRole(gp.getPermission()) .setComponentUuid(project.uuid()) .setComponentName(project.name()); - dbClient.groupPermissionDao().insert(dbSession, dto, null, template); + dbClient.groupPermissionDao().insert(dbSession, dto, project, template); }); List characteristics = dbClient.permissionTemplateCharacteristicDao().selectByTemplateUuids(dbSession, singletonList(template.getUuid())); -- 2.39.5