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

When overwriting a copy of a file with an alias/shortcut of a file; the file thumbnail is not refreshed in the file manager form element.

XMLWordPrintable

    • MOODLE_23_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • wip-MDL-33719-master
    • Hide

      Make sure that filemanager window is refreshed after file is overwritten.
      For example, if image is overwritten, the new thumbnail is displayed. When file is overwritten with shortcut, the shortcut link is displayed

      More tests in MDL-39177

      Show
      Make sure that filemanager window is refreshed after file is overwritten. For example, if image is overwritten, the new thumbnail is displayed. When file is overwritten with shortcut, the shortcut link is displayed More tests in MDL-39177

      When overwriting a copy of a file with an alias/shortcut of a file; the file icon is not refreshed in the file manager form element. Upon clicking the icon, the dialog that opens contains details of the copy of the file and not the shortcut/alias.

      To recreate:

      Test pre-requisites:

      • A box.net repository is enabled or any other repository that supports shortcuts/aliases.
      1. Log into Moodle as admin, teacher or any role capable of adding a file resource.
      2. Navigate to my private files and add a file, as a shortcut/alias, using file picker.
      3. Navigate to a course page and create a file resource.
      4. Add a file from box.net repository to the file manager form element using the filepicker, selecting to create a copy of the file.
      5. Add the same file to the file manager form element again, from the same repository, selecting the option to create a shortcut/alias of the file.
      6. When prompted select 'overwrite'.
      7. Click on the file icon.

      Expected result:

      • The File icon appears as a shortcut/alias.
      • Upon clicking on the file the details are displayed as a shortcut/alias.

      Actual result:

      • The file icon appears as a file, not a shortcut.
      • The file details are those of the copy of the file and not the shortcut/alias.

            marina Marina Glancy
            timb Tim Barker
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ankit Agarwal Ankit Agarwal
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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