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

Attempting a quiz triggers the event \mod_quiz\event\attempt_started twice

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Test 1
      1. Run the unit tests in mod/quiz/tests/events_test.php and ensure it all passes.
      Test 2
      1. Create a quiz and add at least one question.
      2. Log in as a student.
      3. View the quiz and click 'Attempt quiz now'.
      4. Visit <yoursite>/report/log/index.php and view the 'Site logs'.
      5. Check that there is only one log record 'Quiz attempt started'.
      Show
      Test 1 Run the unit tests in mod/quiz/tests/events_test.php and ensure it all passes. Test 2 Create a quiz and add at least one question. Log in as a student. View the quiz and click 'Attempt quiz now'. Visit <yoursite>/report/log/index.php and view the 'Site logs'. Check that there is only one log record 'Quiz attempt started'.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-45803_master

      Description

      1. Create a quiz and add at least one question.
      2. Log in as a student.
      3. View the quiz and click 'Attempt quiz now'.
      4. Visit <yoursite>/report/log/index.php and view the 'Site logs'.
      5. Notice that there are two logs reading 'Quiz attempt started'.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jul/14