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

Deprecate course/changenumsections.php

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.1
    • Course

      The course/changenumsections.php is a legacy file that creates sections at the bottom of the course. It has been entirely replaced and improved by the section_add state action (from the backend) and the addSection mutation (from the frontend).

      The changenumsections.php is only present as a non-ajax alternative to the add section button, but that is not necessary anymore (since MDL-84216) because course/format/update.php can execute the same logic using the new stateaction directly.

      This issue is about:

      • Add an optional targetsection param to the core_courseformat\output\local\content\addsection class so it can be used to calculate the correct URL when the element is between two sections.
      • Create the addsection element with the new targetsection in format_topics\output\courseformat\content\section.
      • Replace the links to changenumsections,PHP urls by $this->format->get_update_url to use the new generic url.
      • Provide non-ajax behat test for adding sections.
      • Add a deprecation message to the changenumsections.php file.
      • Create an issue for the final removal of the file in Moodle 6.0.

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

              Created:
              Updated:

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