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

Wrong icon can appear next to a file resource

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.0.6, 2.1.3
    • Component/s: Course, Resource
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable editing of a course
      2. Add a resource that is a file
      3. In the uploader, upload a PDF and Word document
      4. Click on the 'Save and return to course' button.
      5. Click on the file link and you should be shown a link to the same file type as indicated by the icon
      Show
      Enable editing of a course Add a resource that is a file In the uploader, upload a PDF and Word document Click on the 'Save and return to course' button. Click on the file link and you should be shown a link to the same file type as indicated by the icon
    • Workaround:
      Hide

      Upload files into a folder instead.
      Don't upload two files into one resource.

      Show
      Upload files into a folder instead. Don't upload two files into one resource.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-29231-master

      Description

      When adding two files to one file resource in a course, the wrong icon can be displayed.

      This is cosmetic only.

      Replication instructions:

      1. Enable editing of a course
      2. Add a resource that is a file
      3. In the uploader, upload a PDF and Word document
      4. Click on the 'Save and return to course' button.

      You could now have the PDF icon, but when you click on it you get the word document. Or inversely you could get the Word document icon, but instead download the PDF.

      You can invert the icons and the documents by changing the main file.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

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