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

Course core_courseformat/local/content init with ID element and raises a console message

XMLWordPrintable

    • 1
    • HQ 2025 Planning I1 Moppies

      Since MDL-83339 there's a deprecation message in the course page:

      Init component with id is deprecated, use a query selector instead.

      The reason is quite simple: now all course reactive components use Query selectors instead of hard-coded element IDs to init.

      However, the course/format/templates/local/content.mustache still uses a hard-coded ID.

      component.init('page', {}, sectionreturn);

      When it should be:

       
      component.init('#page', {}, {{sectionreturn);}}

            tusefomal Ferran Recio
            tusefomal Ferran Recio
            Carlos Escobedo Carlos Escobedo
            Amaia Anabitarte Amaia Anabitarte
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 22 minutes
                2h 22m

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