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

When copying a course, mod_folder settings are copied incorrectly

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MDL-71200-311
    • Hide
      1. Login as admin
      2. Create a new course
      3. Add a Folder resource:
        1. Name "Folder A"
        2. Upload any file
        3. Tick "Show download folder button"
      4. Add another Folder resource:
        1. Name "Folder B"
        2. Upload any file
        3. Untick "Show download folder button"
      5. From the Edit actions menu for Folder A choose Duplicate
      6. Click on Folder A (copy)
      7. Confirm Download folder button is present
      8. Go back to course page
      9. From the Edit actions menu for Folder B choose Duplicate
      10. Click on Folder B (copy)
      11. Confirm Download folder button is not present
      Show
      Login as admin Create a new course Add a Folder resource: Name "Folder A" Upload any file Tick "Show download folder button" Add another Folder resource: Name "Folder B" Upload any file Untick "Show download folder button" From the Edit actions menu for Folder A choose Duplicate Click on Folder A (copy) Confirm Download folder button is present Go back to course page From the Edit actions menu for Folder B choose Duplicate Click on Folder B (copy) Confirm Download folder button is not present

    Description

      On Moodle 3.9.4 when copying a course from Manage courses and categories > copy course, specific settings in mod_folder get copied incorrectly.

      The source course contains multiple mod_folder instances with the 'Download folder' option disabled, but their copies in the target course have this option set to enabled.

      mod_folder specific settings:

      • Show content on course page
      • Show download button ==> disabled

      Tested this on school.moodledemo.net as well, same result.

      To replicate:

      • In a course, add a mod_folder instance with at least 1 file in it
      • set the mod_folder instance to display on course page, no download button and save
      • Go to course admin menu > copy course
      • Check result in target course:
      • Download button for copied mod_folder instance displays

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              jwelshoff Joost Elshoff
              Amaia Anabitarte Amaia Anabitarte
              Víctor Déniz Falcón Víctor Déniz Falcón
              Anna Carissa Sadia Anna Carissa Sadia
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 20 minutes
                  2h 20m