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

Error on selecting different attempts for quiz reports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3.2
    • 2.4
    • Quiz
    • MOODLE_24_STABLE
    • MOODLE_23_STABLE
    • Hide

      1. Got to the quiz reports for a quiz with some students who have attempted the quiz and some who have not.

      2. View the report including students who have not attempted the quiz. Verify there are no errors.

      Show
      1. Got to the quiz reports for a quiz with some students who have attempted the quiz and some who have not. 2. View the report including students who have not attempted the quiz. Verify there are no errors.

      Noticed the error while testing MDL-34468. This issue might be related to MDL-34164.

      To reproduce:
      1. Review quiz attempt.
      2. change the attempts to other value other than the pre-selected.
      3. select the show report button.

      It produces the following error:

      Debug info:
      Error code: codingerror
      Stack trace:
       
          line 846 of /mod/quiz/locallib.php: coding_exception thrown
          line 516 of /mod/quiz/attemptlib.php: call to quiz_attempt_state_name()
          line 155 of /mod/quiz/report/attemptsreport_table.php: call to quiz_attempt::state_name()
          line 703 of /lib/tablelib.php: call to quiz_attempts_report_table->col_state()
          line 1271 of /lib/tablelib.php: call to flexible_table->format_row()
          line 66 of /mod/quiz/report/overview/overview_table.php: call to table_sql->build_table()
          line 1383 of /lib/tablelib.php: call to quiz_overview_table->build_table()
          line 236 of /mod/quiz/report/overview/report.php: call to table_sql->out()
          line 100 of /mod/quiz/report.php: call to quiz_overview_report->display()

            timhunt Tim Hunt
            rwijaya Rossiani Wijaya
            Dan Poltawski Dan Poltawski
            Ankit Agarwal Ankit Agarwal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.