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

Redirect-related debugging message shown when doing a quiz regrade

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.1 regressions
    • Fix Version/s: 3.1.1
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as an admin
      2. Go to Site administration ► Development ► Debugging and set the Debug messages to DEVELOPER then click Save changes.
      3. Create a course and enrol a student.
      4. Create a quiz Q1, with at least 2 True or false questions and set the correct answer for both questions to True.
      5. Attempt the quiz as a student.
      6. Log in as a teacher and change the correct answer for the questions to False and save the changes.
      7. Under quiz administration, click Results > Grades.
      8. Click Regrade all or Dry run a full regrade
      9. After the process is complete, confirm that:
        • You see a notification confirming the success and;
        • No warnings are displayed and;
        • A continue button is present.
      Show
      Log in as an admin Go to Site administration ► Development ► Debugging and set the Debug messages to DEVELOPER then click Save changes. Create a course and enrol a student. Create a quiz Q1, with at least 2 True or false questions and set the correct answer for both questions to True. Attempt the quiz as a student. Log in as a teacher and change the correct answer for the questions to False and save the changes. Under quiz administration, click Results > Grades. Click Regrade all or Dry run a full regrade After the process is complete, confirm that : You see a notification confirming the success and; No warnings are displayed and; A continue button is present.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-54787_master
    • Sprint:
      3.2 Sprint 1

      Description

      To reproduce:

      1. Log in as an admin
      2. Go to Site administration ► Development ► Debugging and set the Debug messages to DEVELOPER then click Save changes.
      3. Create a course and enrol a student.
      4. Create a quiz Q1, with at least 2 True or false questions and set the correct answer for both questions to True.
      5. Attempt the quiz as a student.
      6. Log in as a teacher and change the correct answer for the questions to False and save the changes.
      7. Under quiz administration, click Results > Grades.
      8. Click Regrade all or Dry run a full regrade
      9. After the process the following is displayed:

        You should really redirect before you start page output
        line 902 of /lib/outputrenderers.php: call to debugging()
        line 2771 of /lib/weblib.php: call to core_renderer->redirect_message()
        line 305 of /mod/quiz/report/overview/report.php: call to redirect()
        line 279 of /mod/quiz/report/overview/report.php: call to quiz_overview_report->finish_regrade()
        line 82 of /mod/quiz/report/overview/report.php: call to quiz_overview_report->process_actions()
        line 96 of /mod/quiz/report.php: call to quiz_overview_report->display()
        

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jul/16