Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-35218 META: Course formats refactoring for 2.4
  3. MDL-36017

Move fields numsections, hiddensections and coursedisplay from course to course_format_options

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Prerequisites before upgrading to integration

      1. Create a a course with numsections set to a specific value (42)
      2. Set coursedisplay to one section per page
      3. Create some content
      4. Hide sections 2 and 5
      5. Create a backup file of the course
      1. Attempt the upgrade to master
      2. VERIFY there continue to be 42 sections
      3. VERIFY that the course is in single section mode
      4. VERIFY sections are hidden as above
      1. Restore the backup file as a new course
      2. Repeat verification steps above
      1. Attempt to import course items
      2. VERIFY no errors
      3. Change the course format between different formats
      4. VERIFY no errors
      1. Set the course defaults for course format options like numsections, coursedisplay etc. Verify the defaults are applied
      Show
      Prerequisites before upgrading to integration Create a a course with numsections set to a specific value (42) Set coursedisplay to one section per page Create some content Hide sections 2 and 5 Create a backup file of the course Attempt the upgrade to master VERIFY there continue to be 42 sections VERIFY that the course is in single section mode VERIFY sections are hidden as above Restore the backup file as a new course Repeat verification steps above Attempt to import course items VERIFY no errors Change the course format between different formats VERIFY no errors Set the course defaults for course format options like numsections, coursedisplay etc. Verify the defaults are applied
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE

      Description

      • format_legacy should declare fields numsections, hiddensections and coursedisplay as course options
      • Write update script that copies those fields from course table to course_format_options
      • Remove those fields from course edit form
      • Make sure the core code tries to access those fields only if the format is 'topics' or 'weeks' (only in unit tests and renderers)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Integrator:
              Dan Poltawski Dan Poltawski
              Tester:
              Frédéric Massart Frédéric Massart
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/12