Skip to content

Commit

Permalink
SAK-45037 Points must match assignments in the selected Gradebook cat…
Browse files Browse the repository at this point in the history
…egory error editing old assignments (sakaiproject#9033)
  • Loading branch information
austin48 authored Feb 23, 2021
1 parent e12d29d commit 637ba0b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7299,8 +7299,7 @@ private void setNewAssignmentParameters(RunData data, boolean validify) {
gradePoints = scalePointGrade(state, gradePoints, scaleFactor);
state.setAttribute(NEW_ASSIGNMENT_GRADE_POINTS, gradePoints);
if (droppedCategoryPoints != -1) {
int factor = assignmentService.getScaleFactor();
Double enteredPoints = new Double(displayGrade(state, gradePoints, factor));
Double enteredPoints = new Double(displayGrade(state, gradePoints, scaleFactor));
if (!enteredPoints.equals(droppedCategoryPoints)) {
addAlert(state, rb.getFormattedMessage("pleasee6", new Object[] {droppedCategoryPoints.toString()}));
}
Expand Down

0 comments on commit 637ba0b

Please sign in to comment.