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

Lesson detailed statistics not displayed for whole class

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.4, 2.1.1, 2.2
    • 2.0.5, 2.1.2
    • Lesson
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • 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.

    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'), " ");

      Attachments

        Issue Links

          Activity

            People

              rwijaya Rossiani Wijaya
              rezeau Joseph Rézeau
              Rajesh Taneja Rajesh Taneja
              Sam Hemelryk Sam Hemelryk
              Ankit Agarwal Ankit Agarwal
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Oct/11