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

Section url generator does not handle null values

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.5, 5.0.1
    • Course

      core_courseformat\output\local\content\sectionselector::get_section_url() does not handle `course_get_url()` returning a null value.

      This appears to be an oversight since `course_get_url()` explicitly states that it can return a null when navigation is set to true, which is the case in this call.

      The change causing this was introduced in MDL-82490 Classic theme section selector should display delegated section in the correct order

      We are hitting errors related to this every time we add a new activity in one of our custom course formats, where null is being returned by `course_get_url()`, this has not been a problem in Moodle 4.3 or below.

        1. image-2025-05-08-11-39-55-771.png
          86 kB
          Neill Magill

            nmagill Neill Magill
            nmagill Neill Magill
            Luca Bösch Luca Bösch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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