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

tool_uploadcourse doesn't set the section visibility and access restriction like in the templatecourse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4, 3.4.1, 3.5
    • Course
    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • wip-master-MDL-61158
    • 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

      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. Add some access restriction conditions to another section on the same course.
      3. 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.
      4. do not make any changes in the Upload courses preview
      5. course upload should complete successfully
      6. check that the section in the newly created course that should be hidden is not
      7. check that the sections in the newly created course don't have any restriction access.

      Expected result:

      • the newly created course should have the section marked as hidden and same restriction access 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, and restriction access conditions are copied)
      • Bug reproduced on demo.moodle.net

            Votes:
            24 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:

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