Skip to content

Commit

Permalink
SAK-40884: Forums > grading modal doesn't remember previously entered…
Browse files Browse the repository at this point in the history
… user data
  • Loading branch information
wdn5e-virginia-edu authored and bjones86 committed Nov 5, 2018
1 parent d16a7d8 commit f5b87be
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6547,6 +6547,13 @@ public String processDfGradeSubmit()
gradebookService.saveGradeAndCommentForStudent(gradebookUuid, gbItemId, studentUid, gradePoint, gradeComment);

if(selectedMessage != null){

// Get fresh copy of current data, to prevent hibernate version discrepancy on
// intermediate update from "Select a Gradebook item" html select input.
selectedMessage = new DiscussionMessageBean(
messageManager.getMessageByIdWithAttachments(selectedMessage.getMessage().getId()),
messageManager);

Message msg = selectedMessage.getMessage();
//SAK-30711
msg.setGradeAssignmentName(Long.toString(gbItemId));
Expand Down

0 comments on commit f5b87be

Please sign in to comment.