Skip to content

Commit

Permalink
SAK-40028: Duplicated assignments always have 'Access: Display to Sit…
Browse files Browse the repository at this point in the history
…e' even if the original had groups (sakaiproject#5709)
  • Loading branch information
jesusmmp authored and ern committed Jun 26, 2018
1 parent 1dab1f4 commit 0a84c3f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,10 @@ public Assignment addDuplicateAssignment(String context, String assignmentId) th
assignment.setPosition(existingAssignment.getPosition());
assignment.setIsGroup(existingAssignment.getIsGroup());
assignment.setAllowPeerAssessment(existingAssignment.getAllowPeerAssessment());
if (!existingAssignment.getGroups().isEmpty()) {
assignment.setGroups(new HashSet<>(existingAssignment.getGroups()));
assignment.setTypeOfAccess(Assignment.Access.GROUP);
}

// peer properties
assignment.setPeerAssessmentInstructions(existingAssignment.getPeerAssessmentInstructions());
Expand Down

0 comments on commit 0a84c3f

Please sign in to comment.