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

tool_uploadcourse doesn't set the specific course_format_options (like "Hidden sections") setting like in the templatecourse and does not fall back to topics format

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.11.2
    • Course
    • MOODLE_311_STABLE
    • MDL-72425-401
    • MDL-72425-master
    • Hide

      With format omitted

      1. Create a course named fullname "Hidden sections completely invisible course", shortname "hscic" with "Hidden sections" set to "Hidden sections are completely invisible".
      2. As admin, go to the Upload courses tool (admin/tool/uploadcourse) "Site administration" → "Course" → "Upload courses".
      3. Upload a file with the content like the one herunder, "Preview", then "Upload courses"
      4. Verify the "Hidden sections" value in the copied course is set to "Hidden sections are completely invisible".

      shortname,fullname,category,templatecourse
      hscic2,Hidden sections completely invisible course2,1,hscic

      With format empty

      1. Create a course named fullname "Hidden sections completely invisible course3", shortname "hscic3" with "Hidden sections" set to "Hidden sections are completely invisible".
      2. As admin, go to the Upload courses tool (admin/tool/uploadcourse) "Site administration" → "Course" → "Upload courses".
      3. Upload a file with the content like the one herunder, "Preview", then "Upload courses"
      4. Verify the "Hidden sections" value in the copied course is set to "Hidden sections are completely invisible".

      shortname,fullname,category,format,templatecourse
      hscic4,Hidden sections completely invisible course4,1,,hscic3

      Show
      With format omitted Create a course named fullname "Hidden sections completely invisible course", shortname "hscic" with "Hidden sections" set to "Hidden sections are completely invisible". As admin, go to the Upload courses tool (admin/tool/uploadcourse) "Site administration" → "Course" → "Upload courses". Upload a file with the content like the one herunder, "Preview", then "Upload courses" Verify the "Hidden sections" value in the copied course is set to "Hidden sections are completely invisible". shortname,fullname,category,templatecourse hscic2,Hidden sections completely invisible course2,1,hscic With format empty Create a course named fullname "Hidden sections completely invisible course3", shortname "hscic3" with "Hidden sections" set to "Hidden sections are completely invisible". As admin, go to the Upload courses tool (admin/tool/uploadcourse) "Site administration" → "Course" → "Upload courses". Upload a file with the content like the one herunder, "Preview", then "Upload courses" Verify the "Hidden sections" value in the copied course is set to "Hidden sections are completely invisible". shortname,fullname,category,format,templatecourse hscic4,Hidden sections completely invisible course4,1,,hscic3

      When copying over courses with admin/tool/uploadcourse the "Hidden section" setting isn't preserved which leads to lecturers having to set that again, which is a pain.

      FULL STEPS

      1. Create a course named fullname "Hidden sections completely invisible course", shortname "hscic" with "Hidden sections" set to "Hidden sections are completely invisible".
      2. As admin, go to the Upload courses tool (admin/tool/uploadcourse) "Site administration" → "Course" → "Upload courses".
      3. Upload a file with the content like the one herunder, "Preview", then "Upload courses" then verify the "Hidden sections" value in the copied course.

      shortname,fullname,category,templatecourse
      hscic2,Hidden sections completely invisible course2,1,hscic

       

      WHAT YOU EXPECTED
      The copied course has "Hidden sections" set to "Hidden sections are completely invisible".

      WHAT ACTUALLY HAPPENS
      The copied course has "Hidden sections" set to "Hidden sections are shown in collapsed form".

            lucaboesch Luca Bösch
            lucaboesch Luca Bösch
            Ilya Tregubov Ilya Tregubov
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m

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