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

tool_uploadcourse doesn't set the section visibility like in the templatecourse

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4, 3.4.1, 3.5
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Step-by-step instructions:

      1. Create a course, name it short name "My first course", let it have at least a section being hidden. The hidden section should be a section lower than the "numsections" set in "admin/settings.php?section=coursesettings.
      2. go to Site Administration > Courses > Upload Courses and use the following parameters
        • Upload mode: Create new courses or update existing ones
        • the CSV file should contain a 'templatecourse' field, referring to the existing "My first course" course containing at least one hidden section. You can take the newer test.csv file attached hereunder.
      3. do not make any changes in the Upload courses preview
      4. course upload should complete successfully
      5. check that the section in the newly created course that should be hidden is not
      Show
      Step-by-step instructions: Create a course, name it short name "My first course", let it have at least a section being hidden. The hidden section should be a section lower than the "numsections" set in "admin/settings.php?section=coursesettings. go to Site Administration > Courses > Upload Courses and use the following parameters Upload mode: Create new courses or update existing ones the CSV file should contain a 'templatecourse' field, referring to the existing "My first course" course containing at least one hidden section. You can take the newer test.csv file attached hereunder. do not make any changes in the Upload courses preview course upload should complete successfully check that the section in the newly created course that should be hidden is not
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
      wip-35-MDL-61158
    • Pull Master Branch:
      wip-master-MDL-61158

      Description

      Step-by-step instructions:

      1. Create a course, name it short name "My first course", let it have at least a section being hidden
      2. go to Site Administration > Courses > Upload Courses and use the following parameters
        • Upload mode: Create new courses or update existing ones
        • the CSV file should contain a 'templatecourse' field, refering to the existing "My first course" course containing at least one hidden section. You can take the newer test.csv file attached hereunder.
      3. do not make any changes in the Upload courses preview
      4. course upload should complete successfully
      5. check that the section in the newly created course that should be hidden is not

      Expected result:

      • the newly created course should have the section marked as hidden, as in the template course

      Actual result:

      • the newly created course has this section visible

      Additional information:

      • Creating a copy of the template course using a course backup and a course restore works as expected (hidden section remains hidden in the copy)
      • Bug reproduced on demo.moodle.net

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                12 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated: