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

Missing method isStatisticNodeResultAvailable() in IQSURVCourseNode

    XMLWordPrintable

    Details

      Description

      If a course contains only questionnaires, the QTI statistic link is not displayed. Investigating this, I found out that the method isStatisticNodeResultAvailable() is missed in IQSURVCourseNode. GenericCourseNode returns false, so that the link is not displayed. Because the method in IQTESTCourseNode does not really check if there are any results but returns true, it is obvious to add this method to IQSURVCourseNode. Here's the patch:

      diff -r fc7bb26c87aa src/main/java/org/olat/course/nodes/IQSURVCourseNode.java
      --- a/src/main/java/org/olat/course/nodes/IQSURVCourseNode.java	Mon Apr 28 15:01:37 2014 +0200
      +++ b/src/main/java/org/olat/course/nodes/IQSURVCourseNode.java	Tue Apr 29 11:37:25 2014 +0200
      @@ -154,6 +154,11 @@
       		return result;
       	}
       
      +	@Override
      +	public boolean isStatisticNodeResultAvailable(UserCourseEnvironment userCourseEnv) {
      +		return true;
      +	}
      +
       	/**
       	 * @see org.olat.course.nodes.CourseNode#isConfigValid()
       	 */
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Kirsten Scherer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m