From 4654344f8c5278786632c1a8d58d2928fe9edbb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jose=20Mero=C3=B1o=20S=C3=A1nchez?= Date: Fri, 1 Jun 2018 14:26:09 +0200 Subject: [PATCH] SAK-40069 Error in submission detail --- .../java/org/sakaiproject/assignment/tool/AssignmentAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignment/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java b/assignment/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java index d87897f47cfe..3f1c360e38a1 100644 --- a/assignment/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java +++ b/assignment/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java @@ -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());