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

Folder resource: remember recent view mode (icons, tree, details)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.6, 3.2, 3.3, 3.4
    • Fix Version/s: 3.4
    • Component/s: Usability
    • Labels:
    • Testing Instructions:
      Hide

      1. Login as Admin and go to any course
      2. Turn editing on and add a Folder resource
      3. Click "Save and display"
      4. Click "Edit"
      5. Upload some files
      6. Click "Display folder with file details"
      7. Click "Save changes"
      8. Click "Edit"
      9. Verify that the folder is displayed in list mode with file details
      10. Switch between visibility options, make sure it keep track of your last selected option.
      11. Log out, log in again as the same user and access the Folder resource
      12. Check that the last selected option is used

      Show
      1. Login as Admin and go to any course 2. Turn editing on and add a Folder resource 3. Click "Save and display" 4. Click "Edit" 5. Upload some files 6. Click "Display folder with file details" 7. Click "Save changes" 8. Click "Edit" 9. Verify that the folder is displayed in list mode with file details 10. Switch between visibility options, make sure it keep track of your last selected option. 11. Log out, log in again as the same user and access the Folder resource 12. Check that the last selected option is used
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59407-folder-remember-view-mode

      Description

      Currently there is the minor but annoying problem with Folder resource:

      1. Login as Admin and go to any course
      2. Turn editing on and add a Folder resource
      3. Click "Save and display"
      4. Click "Edit"
      5. Upload some files
      6. Click "Display folder with file details"
      7. Click "Save changes"
      8. Click "Edit"

      Expected behavior: folder opens in details mode.

      Actual behavior: folder opens in icons mode.

      There is a TODO item in the code suggesting that recent view mode should be taken from cookie (https://github.com/moodle/moodle/blob/master/lib/form/filemanager.js#L129).

        Attachments

          Activity

            People

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

              Dates

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