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

Fix all external_format_text uses in competency based education branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 3.1
    • Competencies

      Follow on from MDL-50360 (which was about investigating the problem).

      Remove all xxxformatted fields from any external function / export_for_template call. All strings returned should either go through external_format_text or external_format_string with the correct context.

      We should standardize/deduplicate the code that is taking the "record" and formatting it for returning from the webservice. The simplest way to do this is to make the "persistent" classes also "templatable" and then call export_for_template on them always.

      Any webservice returning rendered html needs to accept the theme as a parameter.

            damyon Damyon Wiese
            damyon Damyon Wiese
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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