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

Quiz auto-save does not detect uploaded files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.10.8, 3.11.4
    • 3.9.9, 3.10.6, 3.11.2
    • Quiz
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-72507-master
    • Hide

      Note that, there have been other related changes in master since 3.11, so it is particularly important to test this on all branches.

      Pre-condition:

      1. Navigate to Site admin -> Plugins -> Quiz -> General setting
      2. Set the auto-save delay to 5 seconds
      3. Create or navigate to an existing course
      4. Turn editing on and create a quiz
      5. Create an essay question in the quiz:
        • Set the "Response format" to "HTML editor with the file picker"
        • Set the "Allow Attachment" setting to "2"

      Case 1: The student uploads file by D&D

      1. In a different browser, log in as a student
      2. Start an attempt on the quiz but do not answer the question
      3. Leave the essay section blank
      4. Upload a file using Drag & Drop upload to the file mmanager below the editor
      5. Wait for 5 seconds
      6. Stay on the page...
      7. Switch back to the browser where you are logged in as a teacher
      8. View the quiz and click on the "1 Attempts" link
      9. Review the attempt made by your student
        1. Confirm that the file is shown

      Case 2: The student uploads file by file picker

      1. Back as the student
      2. Use the "Upload file" button (top-left corner of the file manager) to add a second file using the file picker
      3. Wait for 5 seconds
      4. Stay on the page...
      5. Switch back to the browser where you are logged in as a teacher
      6. View the quiz and click on the "1 Attempts" link
      7. Review the attempt made by your student
        1. Confirm that both of the files are shown

      Case 3: Delete file upload

      1. Back as the student
      2. Click on the file in the file manager
      3. Click the "Delete" button and confirm the deletion
      4. Wait for 5 seconds
      5. Stay on the page...
      6. Switch back to the browser where you are logged in as a teacher
      7. View the quiz and click on the "1 Attempts" link
      8. Review the attempt made by your student
        1. Confirm that no files are shown
      Show
      Note that, there have been other related changes in master since 3.11, so it is particularly important to test this on all branches. Pre-condition: Navigate to Site admin -> Plugins -> Quiz -> General setting Set the auto-save delay to 5 seconds Create or navigate to an existing course Turn editing on and create a quiz Create an essay question in the quiz: Set the "Response format" to "HTML editor with the file picker" Set the "Allow Attachment" setting to "2" Case 1: The student uploads file by D&D In a different browser, log in as a student Start an attempt on the quiz but do not answer the question Leave the essay section blank Upload a file using Drag & Drop upload to the file mmanager below the editor Wait for 5 seconds Stay on the page... Switch back to the browser where you are logged in as a teacher View the quiz and click on the "1 Attempts" link Review the attempt made by your student Confirm that the file is shown Case 2: The student uploads file by file picker Back as the student Use the "Upload file" button (top-left corner of the file manager) to add a second file using the file picker Wait for 5 seconds Stay on the page... Switch back to the browser where you are logged in as a teacher View the quiz and click on the "1 Attempts" link Review the attempt made by your student Confirm that both of the files are shown Case 3: Delete file upload Back as the student Click on the file in the file manager Click the "Delete" button and confirm the deletion Wait for 5 seconds Stay on the page... Switch back to the browser where you are logged in as a teacher View the quiz and click on the "1 Attempts" link Review the attempt made by your student Confirm that no files are shown

      If a quiz contains an essay question which allows attachments to be added, the auto-save feature does not detect when a file is uploaded, and so an auto-save does not occur.

      This should work.

      Originally reported in the forums at https://moodle.org/mod/forum/discuss.php?d=425268.

        1. 0001-MDL-72507-core_form-Documentation-fix.patch
          7 kB
        2. MDL-72507_master_Case 1.png
          MDL-72507_master_Case 1.png
          119 kB
        3. MDL-72507_master_Case 2.png
          MDL-72507_master_Case 2.png
          106 kB
        4. MDL-72507_master_Case 3.png
          MDL-72507_master_Case 3.png
          102 kB
        5. MDL-72507_v3.10_Case 1.png
          MDL-72507_v3.10_Case 1.png
          99 kB
        6. MDL-72507_v3.10_Case 2.png
          MDL-72507_v3.10_Case 2.png
          100 kB
        7. MDL-72507_v3.10_Case 3.png
          MDL-72507_v3.10_Case 3.png
          98 kB
        8. MDL-72507_v3.11_Case 1.png
          MDL-72507_v3.11_Case 1.png
          109 kB
        9. MDL-72507_v3.11_Case 2.png
          MDL-72507_v3.11_Case 2.png
          113 kB
        10. MDL-72507_v3.11_Case 3.png
          MDL-72507_v3.11_Case 3.png
          102 kB

            jbthong Thong Bui
            timhunt Tim Hunt
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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