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

Overwriting a file should maintain the original sortorder

    Details

    • Testing Instructions:
      Hide
      1. Create a file resource with two files, A and B.
      2. Set file A as the Main File - it should bold.
      3. Save and verify that file A is served.
      4. Edit the resource.
      5. Re-upload file A, when prompted, choose overwrite.
      6. Verify that A is still bolded.
      7. Save and verify that file A is still served.
      Show
      Create a file resource with two files, A and B. Set file A as the Main File - it should bold. Save and verify that file A is served. Edit the resource. Re-upload file A, when prompted, choose overwrite. Verify that A is still bolded. Save and verify that file A is still served.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:

      Description

      When overwriting a file, the sortorder field is lost. In particular, this causes the "Main File" setting for File Resources to be lost.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Nov/13