Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29018

Lesson detailed statistics not displayed for whole class

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.1.1, 2.2
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide

      login as teacher/admin
      #create lesson with question

      login as student
      #attempt the lesson

      #login as teacher/admin

      1. select the lesson
      2. select "report"
      3. select "Detailed statistics"

      make sure it displays the class statistics.

      note: if there's no attempt on the lesson, the page will display 'No attempts have been made on this lesson.' message.

      Show
      login as teacher/admin #create lesson with question login as student #attempt the lesson #login as teacher/admin select the lesson select "report" select "Detailed statistics" make sure it displays the class statistics. note: if there's no attempt on the lesson, the page will display 'No attempts have been made on this lesson.' message.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Lesson detailed statistics not displayed for whole class.
      See this discussion: http://moodle.org/mod/forum/discuss.php?d=183600

      1.- Suggested fix (for moodle 2.0 and 2.1)
      in mod/lesson/report.php, line 563
      change

      if (!empty($page->answerdata) && isset($page->answerdata->response)) {

      to:

      if (!empty($page->answerdata) && (empty($userid) || (!empty($userid) && isset($page->answerdata->response)))) {

      2.- Plus: when student did not answer a question, in the Detailed (individual) statistics it would be nicer to display "Did not answer this question." rather than "0".
      in mod/lesson/report.php, line 577 change

      $table->data[] = array(0, " ");

      to:

      $table->data[] = array(get_string('didnotanswerquestion', 'lesson'), " ");

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Oct/11