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

When quiz previews are deleted automatically, that should not be logged as attempt deleted

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.8, 2.9.2, 3.0
    • 2.8.9, 2.9.3
    • Events API, Quiz
    • MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MDL-52014-master
    • Hide
      1. At teacher
      2. Create a new quiz with one essay question
      3. Preview the quiz, and submit your preview attempt
      4. Edit the quiz and add a new multiple choice question
      5. View the course logs
      6. VERIFY there is no 'Quiz attempt deleted' log entry against the teacher
      Show
      At teacher Create a new quiz with one essay question Preview the quiz, and submit your preview attempt Edit the quiz and add a new multiple choice question View the course logs VERIFY there is no 'Quiz attempt deleted' log entry against the teacher

    Description

      The quiz_delete_attempt method in mod/quiz/locallib.php should only log the attempt_deleted event if the attempt is not a preview (Only log is $attempt->preview is 0).

      Attachments

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              timhunt Tim Hunt
              Tim Hunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Simey Lameze Simey Lameze
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Nov/15