Skip to content

Commit 6e68df7

Browse files
authored
Merge pull request #3249 from TechnologyEnhancedLearning/Develop/Fixes/TD-5557_Competency_Description_Not_Saved
TD_5557 Framework Competency Group Description not showing up after update
2 parents 030a385 + 0fce67c commit 6e68df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Data/DataServices/FrameworkDataService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ int adminId
10441044
{
10451045
var numberOfAffectedRows = connection.Execute(
10461046
@"UPDATE CompetencyGroups SET Name = @name, UpdatedByAdminID = @adminId, Description = @description
1047-
WHERE ID = @competencyGroupId AND (Name <> @name OR Description <> @description)",
1047+
WHERE ID = @competencyGroupId AND (Name <> @name OR ISNULL(Description, '') <> ISNULL(@description, ''))",
10481048
new { name, adminId, competencyGroupId, description }
10491049
);
10501050
if (numberOfAffectedRows < 1)

0 commit comments

Comments
 (0)