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

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.4
    • Course
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • 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

    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

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

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12