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

      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

            Assignee:
            nmagill Neill Magill
            Reporter:
            nmagill Neill Magill
            Peer reviewer:
            Peter Dias
            Integrator:
            Andrew Nicols
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              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