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

Teacher previewing a quiz can get a 'finished' attempt with submit date of 0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.5, 3.5.2, 3.7
    • 3.5.5, 3.6.3
    • Quiz
    • MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_37_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • Hide
      1. As teacher
      2. Create a quiz that requires a password (under "Extra restrictions on attempts").
      3. Add a question (true/false is easiest)
      4. Go back to the quiz intro page.
      5. Click "Attempt quiz now"
      6. Complete the form that pops up.
      7. Answer one question (not essential).
      8. Click "Start a new preview"
      9. On the "Start attempt" form, click "Cancel".
      10. Verify, you are on the quiz intro page, and your previous attempt is shown with the state as "Never submitted".
      Show
      As teacher Create a quiz that requires a password (under "Extra restrictions on attempts"). Add a question (true/false is easiest) Go back to the quiz intro page. Click "Attempt quiz now" Complete the form that pops up. Answer one question (not essential). Click "Start a new preview" On the "Start attempt" form, click "Cancel". Verify, you are on the quiz intro page, and your previous attempt is shown with the state as "Never submitted".

    Description

      Steps to reproduce:

      1. Install https://moodle.org/plugins/quizaccess_honestycheck (standard quiz Password access restriction may also work)
      2. Create a quiz using that access restriction
      3. Click "Start attempt"
      4. Complete the form that pops up.
      5. Answer one question (not essential).
      6. Click "Start another preview"
      7. Now, on the start attempt form, click cancel.

      Actual result: You are on the quiz view.php page. In the table that lists your attempts, you can see your old preview, with a sumbitted date of 1st Jan 1970 (unix date 0).

      Expected result: Something else. Either the preview should already be deleted, or perhaps we should use Abandoned state, rather than Finished.

      Attachments

        1. MDL-63870.jpg
          25 kB
          Anna Carissa Sadia

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Luca Bösch Luca Bösch
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Raquel Ortega, Sabina Abellan, Sander Bangma, Sara Arjona (@sarjona), Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Mar/19

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m