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

File resource duplication fails on course page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.3
    • 2.3
    • Course, JavaScript

      I duplicated a .xls file resource on the course page. Although a duplicate item was created it had the following problems:
      1. It had a blank icon.
      2. When the link is clicked a file not found page is displayed.

      Test 1:

      Test Pre-requisites:

      • This test must be performed using the Firefox web browser.
      • Enable ajax in Site administration > Appearance > Ajax and Javascript
      • Any course in Moodle that has the course format set to Topics.
      • Course administration > Course layout is set to "Show one section per page".

      Test Steps:
      1. Navigate the course index page.
      2. Move a section and verify that the section has been moved.
      3. Move a resource between sections, then turn editing off and verify that the resource has been moved.
      4. Indent a section, then turn editing off and verify that section appears indented and in the correct position.
      5. Edit a resource, then turn editing off and verify that the resource has been edited.
      6. Hide a resource, then turn editing off and verify that the resource is hidden.
      7. Delete a resource, then turn editing off and verify that the resource is deleted.
      8. Duplicate a resource, click 'Return to course' then turn editing off and verify that the resource has been duplicated.

      Expected Results:

      • The file resource that I want to duplicate is duplicated. The resource icon is the same as the original file.
      • A link to the file is added to the course page.

      Actual Result:

      • A new file resource is created.
      • There is no icon for the resource.
      • The link to the file resource is dead.

      Test 2:

      Test Pre-requisites:

      • This test must be performed using the Firefox web browser.
      • Enable ajax in Site administration > Appearance > Ajax and Javascript
      • Any course in Moodle that has the course format set to Topics.
      • Course administration > Course layout is set to "Show one section per page".

      Test Steps:
      1. Navigate the course index page.
      2. Move a section and verify that the section has been moved.
      3. Move a resource between sections, then turn editing off and verify that the resource has been moved.
      4. Indent a section, then turn editing off and verify that section appears indented and in the correct position.
      5. Edit a resource, then turn editing off and verify that the resource has been edited.
      6. Hide a resource, then turn editing off and verify that the resource is hidden.
      7. Delete a resource, then turn editing off and verify that the resource is deleted.
      8. Duplicate a resource, click 'Edit the new copy', edit the resource name and save your changes, then turn editing off and verify that the resource has been duplicated.

      Expected Results:

      • The file resource that I want to duplicate is duplicated. The resource icon is the same as the original file.
      • The file name is different.
      • A link to the file is added to the course page.

      Actual Result:

      • I cannot save changes in modedit.php because there is no file resource in the file manager form element to save.

      Initial testing was performed in Firefox 12 but I have since tested this in Opera and Google Chrome; it is a problem there too.

            marina Marina Glancy
            timb Tim Barker
            Dan Poltawski Dan Poltawski
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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