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

Courses copied by uploadcourse do not keep their number of section

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Test in Boost or Clean
      2. Make sure moodlecourse | numsections (Number of sections @ Admin -> Courses -> Course default settings) is set to 4.
      3. Create a course with two sections (or import the attached mbz).
      4. Name the course "My source course", both shortname and fullname so it matches the test csv.
      5. Go to admin/tool/uploadcourse/index.php.
      6. Upload the attached csv which takes the given course as source and copies it. Upon having clicked the "Preview" button, leave all settings on the admin/tool/uploadcourse/index.php page in the "Default course values" form section as they are, click "Upload courses" and wait until the copy process is over.
      7. Go to that resulting new course ("My target course").
      8. Verify that course has two sections, not four.
      Show
      Test in Boost or Clean Make sure moodlecourse | numsections (Number of sections @ Admin -> Courses -> Course default settings) is set to 4. Create a course with two sections (or import the attached mbz). Name the course "My source course", both shortname and fullname so it matches the test csv. Go to admin/tool/uploadcourse/index.php. Upload the attached csv which takes the given course as source and copies it. Upon having clicked the "Preview" button, leave all settings on the admin/tool/uploadcourse/index.php page in the "Default course values" form section as they are, click "Upload courses" and wait until the copy process is over. Go to that resulting new course ("My target course"). Verify that course has two sections, not four.
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
    • Pull 3.7 Branch:
    • Pull Master Branch:
      MDL-63268-master

      Description

      1. Test in Boost or Clean
      2. Make sure moodlecourse | numsections (Number of sections) is set to 4.
      3. Create a course with two sections (or import the attached mbz).
      4. go to admin/tool/uploadcourse/index.php
      5. Upload a csv which takes the given course as source and copies it (take the attached csv).
      6. Go to that copied course

      WHAT YOU EXPECTED

      The target course has two sections.

      WHAT ACTUALLY HAPPENS

      The target course has four sections.

        Attachments

        1. course_copy-MDL-63268.csv
          0.3 kB
        2. source.mbz
          5 kB
        3. Screenshot 2019-06-27 at 16.29.01.png
          Screenshot 2019-06-27 at 16.29.01.png
          181 kB
        4. MDL-63268.jpg
          MDL-63268.jpg
          27 kB

          Issue Links

            Activity

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 55 minutes
                  1h 55m