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

Refactor cm action menu output

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 5.0
    • Course

      The current core_courseformat\output\local\content\cm\controlmenu is still using the old course_get_cm_edit_actions.

      The old course editing will be deprecated in 5.0, which allows for simplifying the logic. This issue prepares the class for deprecating any course format incompatible with components.

      Also, the permalink option should be moved before the delete one because the current position is wrong.

      Technical shaping

      We cannot get rid of the old action menu until 6.0. However, the new refactor should not include all the twisted logic required for old formats. To allow this the process should be

      1. Deprecate the old course_get_cm_edit_actions.
      2. Refactor the class.
      3. In the refactored cm_control_items add an if clause for the courses that need the legacy one (!$this->format->supports_components()).

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

              Created:
              Updated:
              Resolved:

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