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

Error received when I click the "save the state of the flags" button

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.1
    • 2.3.2
    • Quiz
    • None
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • Hide
      1. Turn of JavaScript in your browser.
      2. Attempt a quiz.
      3. Tick the checkboxes by some flags.
      4. When you get to the review page, click the Save flags button.
      5. Verify that there are no errors, and that the flag state is staved.
      Show
      Turn of JavaScript in your browser. Attempt a quiz. Tick the checkboxes by some flags. When you get to the review page, click the Save flags button. Verify that there are no errors, and that the flag state is staved.

    Description

      As admin I created a quiz containing a single numeric question. After answering the question I have 2 buttons. "save the state of the flags" and "Finish review". Save the state sends me to the below URL and the page displays the following error.

      /mod/quiz/review.php?attempt=37

      Notice: Undefined variable: DB in /home/andrew/Desktop/code/moodle/int/master/mod/quiz/attemptlib.php on line 1338 Fatal error: Call to a member function start_delegated_transaction() on a non-object in /home/andrew/Desktop/code/moodle/int/master/mod/quiz/attemptlib.php on line 1338

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              andyjdavis Andrew Davis
              Dan Poltawski Dan Poltawski
              Dan Poltawski Dan Poltawski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Sep/12