Skip to content

Commit 5de5a2a

Browse files
authored
Merge pull request #3390 from TechnologyEnhancedLearning/Develop/Fixes/TD-6295-thelogged-inadminusershouldbesetastheowneroftheself-assessment
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
2 parents be230d2 + c74ae9b commit 5de5a2a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DigitalLearningSolutions.Data/DataServices/CompetencyAssessmentDataService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,9 +822,7 @@ public void UpdateSelfAssessmentFromFramework( int selfAssessmentId, int? framew
822822
SET
823823
[Description] = COALESCE(F.[Description], 'No description provided'),
824824
BrandID = F.BrandID,
825-
CategoryID = F.CategoryID,
826-
CreatedByCentreID = AU.CentreID,
827-
CreatedByAdminID = F.OwnerAdminID
825+
CategoryID = F.CategoryID
828826
FROM SelfAssessments s
829827
INNER JOIN Frameworks F ON F.ID = @frameworkId
830828
INNER JOIN AdminUsers AU ON F.OwnerAdminID = AU.AdminID

0 commit comments

Comments
 (0)