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

The sectionactions::create method cannot create section zero

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 4.4
    • Course
    • HQ 2024 Sprint I2.1 Moppies

    Description

      MDL-80187 introduced the new core_courseformat\local\sectionactions class to group all course section editing (design is explained in MDL-80000).

      The method to create a section is now sectionactions::create, inspired by the previous course_create_section global function. However, during the development of MDL-80190, I discovered an error when creating a section zero.

      The course_create_section has a $position>0 condition that now prevents the creation of the section zero.

      Attachments

        Activity

          People

            tusefomal Ferran Recio
            tusefomal Ferran Recio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

                Clockify

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