Skip to content

Commit

Permalink
SAK-40668 - Peer options are remembered when you edit an assignment t…
Browse files Browse the repository at this point in the history
…hen (sakaiproject#6266)

create a new one

Added "resetAssignment" to "doNew_assignment" in order to reset all the
attributes between the creation of an assignment and the creation of
another assignment.
  • Loading branch information
adrianmticarum authored and ern committed Nov 20, 2018
1 parent c1717b6 commit 3460984
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6602,6 +6602,7 @@ public void doNew_assignment(RunData data, Context context) {
boolean allowAddAssignment = assignmentService.allowAddAssignment((String) state.getAttribute(STATE_CONTEXT_STRING));
boolean allowUpdateAssignment = assignmentService.allowUpdateAssignmentInContext((String) state.getAttribute(STATE_CONTEXT_STRING));
if (allowAddAssignment && allowUpdateAssignment) {
resetAssignment(state);
initializeAssignment(state);

state.setAttribute(ATTACHMENTS, entityManager.newReferenceList());
Expand Down

0 comments on commit 3460984

Please sign in to comment.