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

The sectionactions::create method cannot create section zero

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.4
    • Course
    • 2

      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.

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

              Created:
              Updated:

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

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