Skip to content
Snippets Groups Projects
Commit 69d5020f authored by srosse's avatar srosse
Browse files

OO-3849: correctly handle solution with due date and mandatory task

parent ec12b206
No related branches found
No related tags found
No related merge requests found
......@@ -618,7 +618,9 @@ public class GTAParticipantController extends GTAAbstractController implements A
submitDirectory = gtaManager.getSubmitDirectory(courseEnv, gtaNode, assessedIdentity);
}
if(availableDate == null && optional
if(availableDate == null && !optional) {
show = true;
} else if(availableDate == null && optional
&& (gtaNode.getModuleConfiguration().getBooleanSafe(GTACourseNode.GTASK_SAMPLE_SOLUTION_VISIBLE_ALL, false) || TaskHelper.hasDocuments(submitDirectory))) {
show = true;
} else if(availableDate != null && (optional || !availableDate.isRelative())
......
......@@ -1230,7 +1230,8 @@ public class AssessmentTest extends Deployments {
.clickTree()
.selectWithTitle(gtaNodeTitle);
ryomouTask
.assertPassed();
.assertPassed()
.assertSolution("solution_1.txt");
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment