Skip to content
Snippets Groups Projects
Commit 65fdd704 authored by srosse's avatar srosse
Browse files

OO-4859: LTI can use cut value in evaluation tool (patch S. Clemenz)

parent 9d5931d6
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ public class LTIAssessmentConfig implements AssessmentConfig { ...@@ -87,7 +87,7 @@ public class LTIAssessmentConfig implements AssessmentConfig {
@Override @Override
public Float getCutValue() { public Float getCutValue() {
if (Mode.none != getPassedMode()) { if (Mode.none == getPassedMode()) {
throw new OLATRuntimeException(LTIAssessmentConfig.class, "getCutValue not defined when hasPassedConfigured set to false", null); throw new OLATRuntimeException(LTIAssessmentConfig.class, "getCutValue not defined when hasPassedConfigured set to false", null);
} }
return config.getFloatEntry(MSCourseNode.CONFIG_KEY_PASSED_CUT_VALUE); return config.getFloatEntry(MSCourseNode.CONFIG_KEY_PASSED_CUT_VALUE);
......
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