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

QTI2 learning resource: RS when restting test results

    XMLWordPrintable

    Details

      Description

      A lion appears when resetting test results in the test learning resource. This patch fixes that:

      diff --git a/src/main/java/org/olat/ims/qti21/manager/AssessmentResponseDAO.java b/src/main/java/org/olat/ims/qti21/manager/AssessmentResponseDAO.java
      --- a/src/main/java/org/olat/ims/qti21/manager/AssessmentResponseDAO.java
      +++ b/src/main/java/org/olat/ims/qti21/manager/AssessmentResponseDAO.java
      @@ -151,7 +151,7 @@
       		  .append(" left join ident.user as usr")
       		  .append(" where testSession.testEntry.key=:testEntryKey")
       		  .append("  and testSession.finishTime is not null and testSession.authorMode=false");
      -		if(searchParams.getCourseEntry() != null) {
      +		if(searchParams.getCourseEntry() != null || searchParams.getTestEntry() != null) {
       			sb.append(" and testSession.repositoryEntry.key=:repoEntryKey");
       		}
       		if(StringHelper.containsNonWhitespace(searchParams.getNodeIdent())) {
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m