Skip to content

Commit 0fce67c

Browse files
committed
TD_5557_ added a null check to the query for the description propery whenever we update any competency group, so that the updated description value can be saved to the DB and show up.
1 parent 030f828 commit 0fce67c

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
@@ -1042,7 +1042,7 @@ int adminId
10421042
{
10431043
var numberOfAffectedRows = connection.Execute(
10441044
@"UPDATE CompetencyGroups SET Name = @name, UpdatedByAdminID = @adminId, Description = @description
1045-
WHERE ID = @competencyGroupId AND (Name <> @name OR Description <> @description)",
1045+
WHERE ID = @competencyGroupId AND (Name <> @name OR ISNULL(Description, '') <> ISNULL(@description, ''))",
10461046
new { name, adminId, competencyGroupId, description }
10471047
);
10481048
if (numberOfAffectedRows < 1)

0 commit comments

Comments
 (0)