Skip to content

Commit

Permalink
SAK-50616 LTI 1.3 Synchronizing grades doesn't work well when Tomcat …
Browse files Browse the repository at this point in the history
…language's decimal separator is a comma
  • Loading branch information
jesusmmp committed Oct 18, 2024
1 parent 60bf216 commit 3af3c73
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2694,7 +2694,9 @@ public static Object handleGradebookLTI13(Site site, Long tool_id, Map<String,
} else {
assignedGrade = (scoreGiven / scoreMaximum) * gradebookColumnPoints;
}
g.setAssignmentScoreString(siteId, gradebookColumn.getId(), userId, assignedGrade.toString(), "External Outcome");
String gradeI18n = assignedGrade.toString();
gradeI18n = (",").equals((ComponentManager.get(FormattedText.class)).getDecimalSeparator()) ? gradeI18n.replace(".",",") : gradeI18n;
g.setAssignmentScoreString(siteId, gradebookColumn.getId(), userId, gradeI18n, "External Outcome");
if ( StringUtils.isBlank(comment) ) {
g.deleteAssignmentScoreComment(siteId, gradebookColumn.getId(), userId);
} else {
Expand Down

0 comments on commit 3af3c73

Please sign in to comment.