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

Custom attributes for select option elements are being stripped in Theme Boost

XMLWordPrintable

    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • MDL-56577-master
    • Hide
      Test on Boost theme
      1. Download optiontest.php to your moodle root directory.
      2. Open it on your web browser.
      3. Inspect the option tags of the various select elements and check and confirm the options have the following attributes:
        • value
        • custom-attr
        • data-otherval
      4. Confirm that Option 1 is selected for all the select elements (Select Groups and Select Groups Inline will have "Option X - 1" selected. It doesn't matter, we just want to confirm that the "selected" attribute is being set.)
      5. Check that Option 2 is disabled for all of the select elements. For Select Groups and Select Groups-Inline, "Option X - 2" are disabled.
      6. Check that Option 3 has its label shown instead (e.g. "Option 3 label")
      7. Check the values for the "label", "custom-attr" and "data-otherval" attributes.
        • Confirm that the values are not double quoted.
      Show
      Test on Boost theme Download optiontest.php to your moodle root directory. Open it on your web browser. Inspect the option tags of the various select elements and check and confirm the options have the following attributes: value custom-attr data-otherval Confirm that Option 1 is selected for all the select elements (Select Groups and Select Groups Inline will have " Option X - 1 " selected. It doesn't matter, we just want to confirm that the "selected" attribute is being set.) Check that Option 2 is disabled for all of the select elements. For Select Groups and Select Groups-Inline , " Option X - 2 " are disabled. Check that Option 3 has its label shown instead (e.g. " Option 3 label ") Check the values for the " label ", " custom-attr " and " data-otherval " attributes. Confirm that the values are not double quoted.

      Just found out that content-item selection does not work in Theme Boost. When I inspected the option elements, I noticed that the custom attributes that were set in mod_form have not been rendered.

            jpataleta Jun Pataleta
            jpataleta Jun Pataleta
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Jake Dallimore Jake Dallimore
            Votes:
            1 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.