Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-4859

BasicLTI: assessment tool is broken

    XMLWordPrintable

    Details

      Description

      A redscreen occurs in assessment tool when a LTI course node is configured for assessment (cat value, scale). This patch fixes that:

       

      diff --git a/src/main/java/org/olat/course/nodes/basiclti/LTIAssessmentConfig.java b/src/main/java/org/olat/course/nodes/basiclti/LTIAssessmentConfig.java
      index 6ad1371..fb3e529 100644
      --- a/src/main/java/org/olat/course/nodes/basiclti/LTIAssessmentConfig.java
      +++ b/src/main/java/org/olat/course/nodes/basiclti/LTIAssessmentConfig.java
      @@ -87,7 +87,7 @@
       	
       	@Override
       	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);
       		}
       		return config.getFloatEntry(MSCourseNode.CONFIG_KEY_PASSED_CUT_VALUE);
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Tester:
            Mandy Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: