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

Indention in admin_settings_coursecat_select broken: HTML in admin_settings_configselect option values is escaped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.2.2, 3.2.5, 3.3
    • Administration
    • MOODLE_32_STABLE, MOODLE_33_STABLE
      1. Create a new course category as a child category of Misc
      2. Go to Site administration -> Courses -> Course request and see the defaultrequestcategory setting.

      With the use of mustache templates for admin settings the option values are escaped. This breaks the indention with non-breaking spaces (" ") for subcategories in admin_settings_coursecat_select. See the defaultrequestcategory setting under Courses -> Course request.

      For dropdown and multi select menus using

       

      is the only way to indent options.

      One solution would be to adjust the mustache templates setting_configselect and setting_configmultiselect to not escaping the option value. See the attached github branch.

      Another solution might be to explicit implement an indention feature to the admin_settings_configselect and multiselect classes, separately processed by the template by including the appropriate number of non-breaking spaces.

            jojoob Johannes Burk
            jojoob Johannes Burk
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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