From c74ae9bf960b1b79c44857ff1247d11f3d4c2ca1 Mon Sep 17 00:00:00 2001 From: sherif-olaboye <123654949+sherif-olaboye@users.noreply.github.com> Date: Thu, 2 Oct 2025 15:51:42 +0100 Subject: [PATCH] TD-6295 When creating a self assessment from a framework, the logged in admin user should become the owner of the self assessment not the framework owner --- .../DataServices/CompetencyAssessmentDataService.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DigitalLearningSolutions.Data/DataServices/CompetencyAssessmentDataService.cs b/DigitalLearningSolutions.Data/DataServices/CompetencyAssessmentDataService.cs index 3c2cc31532..e4b296c556 100644 --- a/DigitalLearningSolutions.Data/DataServices/CompetencyAssessmentDataService.cs +++ b/DigitalLearningSolutions.Data/DataServices/CompetencyAssessmentDataService.cs @@ -822,9 +822,7 @@ public void UpdateSelfAssessmentFromFramework( int selfAssessmentId, int? framew SET [Description] = COALESCE(F.[Description], 'No description provided'), BrandID = F.BrandID, - CategoryID = F.CategoryID, - CreatedByCentreID = AU.CentreID, - CreatedByAdminID = F.OwnerAdminID + CategoryID = F.CategoryID FROM SelfAssessments s INNER JOIN Frameworks F ON F.ID = @frameworkId INNER JOIN AdminUsers AU ON F.OwnerAdminID = AU.AdminID