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

Quiz statistics report does not work when the quiz contains descriptions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Quiz
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      <b>Notice</b>: Undefined property: stdClass::$qtype in <b>/home/tim/Workspace/moodle_head/mod/quiz/report/statistics/qstats.php</b> on line <b>178</b><br />
      ...
      <b>Fatal error</b>: Call to a member function show_analysis_of_responses() on a non-object in <b>/home/tim/Workspace/moodle_head/mod/quiz/report/statistics/qstats.php</b> on line <b>121</b><br />

      Because the description is in the $this->states array, but not in the $this->questions.

      Attachments

        Issue Links

          Activity

            People

              jamiesensei Jamie Pratt
              timhunt Tim Hunt
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10