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

Set number of course sections to a reasonable value when course content is imported

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      When importing the contents of one course (course 1) into another (course 2)
      If course 1 has more sections than course 2 then currently the activities in the additional sections will be orphaned.
      If you check the 'Create empty sections' then sufficient additional sections will be added to course 2 that the activities are able to sit in a visible section.

      Show
      When importing the contents of one course (course 1) into another (course 2) If course 1 has more sections than course 2 then currently the activities in the additional sections will be orphaned. If you check the 'Create empty sections' then sufficient additional sections will be added to course 2 that the activities are able to sit in a visible section.
    • Affected Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      UU-159

      Description

      Steps to reproduce:

      • Create a course A
      • Set the number of course sections of course A to > 1
      • Fill the course sections of course A with some activities
      • Create a course B
      • Set the number of course sections of course B to 1
      • Fill the course sections of course B with some activities
      • Go to course A
      • Open the Course administration -> Import menu item
      • Import content of more than one section from course B into course A

      Actual result:

      • In course A, section number 1 is visible and shows the imported content
      • In course A, section number 2 and so on are not visible and are only shown as orphaned activities when editing mode is on

      Expected result:

      • In course A, the number of sections is set to a reasonable value and all sections which were imported from course B are visible to students without having to change anything to change orphaned activity sections to real sections.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrew_dc_hancox Andrew Hancox
              Reporter:
              abias Alexander Bias
              Peer reviewer:
              Adrian Greeve
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: