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

    • 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

      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).

            poltawski Dan Poltawski
            timhunt Tim Hunt
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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