Skip to content

Commit

Permalink
SAK-40069 Error in submission detail
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono authored and Miguel Pellicer committed Jun 1, 2018
1 parent 7722dff commit 4654344
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9734,7 +9734,7 @@ private void putSubmissionInfoIntoState(SessionState state, String assignmentId,
if (a.getTypeOfGrade() == SCORE_GRADE_TYPE
&& StringUtils.isNotBlank(p.get(PROP_ASSIGNMENT_ASSOCIATE_GRADEBOOK_ASSIGNMENT))
&& assignmentService.getGradeForUserInGradeBook(a.getId(), submitter.getSubmitter()) != null
&& !(assignmentService.getGradeForUserInGradeBook(assignmentId, submitter.getSubmitter()).equals(displayGrade(state, (String) state.getAttribute(GRADE_SUBMISSION_GRADE), a.getScaleFactor())))
&& !(assignmentService.getGradeForUserInGradeBook(a.getId(), submitter.getSubmitter()).equals(displayGrade(state, (String) state.getAttribute(GRADE_SUBMISSION_GRADE), a.getScaleFactor())))
&& state.getAttribute(GRADE_SUBMISSION_GRADE) != null) {
// grade from gradebook
grade_override = assignmentService.getGradeForUserInGradeBook(a.getId(), submitter.getSubmitter());
Expand Down

0 comments on commit 4654344

Please sign in to comment.