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

Pressing cancel on a resource activity settings page may result in a file download

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-69296-m39
    • Hide

      Use the breadcrumb navigation to exit the form.

      Show
      Use the breadcrumb navigation to exit the form.
    • Hide

      Setup

      1. Create a course with the Topics format
      2. Immediately below the Announcement forum create a File resource with an uploaded file and the following settings:
        1. Name: Test file
        2. Display: Forced download

      User is returned to the resource view page

      1. Navigate to the Announcements forum
      2. Follow the Test file link at the bottom of the forum
      3. Open the cog menu and press the Edit settings option
      4. Press the Cancel button
      5. Verify that the user is returned to the Test file view page they were on in Step 3
      Show
      Setup Create a course with the Topics format Immediately below the Announcement forum create a File resource with an uploaded file and the following settings: Name: Test file Display: Forced download User is returned to the resource view page Navigate to the Announcements forum Follow the Test file link at the bottom of the forum Open the cog menu and press the Edit settings option Press the Cancel button Verify that the user is returned to the Test file view page they were on in Step 3

    Description

      If a user navigates to a resource using the previous or next buttons and then edits the resource settings it is possible that the cancel button on the form will result in a file download, rather than taking them back to the page view they were expecting.

      This is an edge case, but which will be odd for users who encounter it.

      Assumptions

      1. You have a course with the following activities:
        • Announcements forum
        • File resource with an uploaded file and the following settings:
          1. Name: Test file
          2. Display: Forced download (although with automatic it will also happen for many files)

      Steps to reproduce

      1. Navigate to the Announcements forum
      2. Follow the Test file link at the bottom of the forum
      3. Open the cog menu and press the Edit settings option
      4. Press the cancel button

      Expected result

      Moodle returns to the page from step 3

      Actual result

      Moodle downloads the file and the form remains on screen.

      Attachments

        Activity

          People

            nmagill Neill Magill
            nmagill Neill Magill
            Peter Dias Peter Dias
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/Sep/20

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 7 minutes
                1h 7m