Skip to content

Commit aeb767e

Browse files
committed
CSCEXAM-1491 Fix copying of external assessments questions
1 parent 4b25586 commit aeb767e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/controllers/exam/copy/ExamCopyContext.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ public boolean isWithAnswers() {
5959
}
6060

6161
public boolean shouldSetParent() {
62-
// Teacher copies, non-collaborative student exams, and copies with answers should have parent set
63-
return (
64-
copyType == CopyType.TEACHER_COPY || copyType == CopyType.STUDENT_EXAM || copyType == CopyType.WITH_ANSWERS
65-
);
62+
// Teacher copies and non-collaborative student exams should have parent set
63+
return (copyType == CopyType.TEACHER_COPY || copyType == CopyType.STUDENT_EXAM);
6664
}
6765

6866
public boolean shouldShuffleOptions() {

test/resources/externalExamAttainment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"modified": null,
194194
"modifier": null,
195195
"question": {
196-
"id": 5,
196+
"id": 5555555555,
197197
"tags": [],
198198
"type": "MultipleChoiceQuestion",
199199
"state": null,

0 commit comments

Comments
 (0)