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

Formslib templates: size attribute can apply to any select, not just multiple, and should apply to selectgroup as well as select

XMLWordPrintable

    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_37_STABLE
    • Hide
      1. Install https://moodle.org/plugins/tool_editrolesbycap
      2. Go to Admin -> Users -> Permissions -> Edit roles by capability.
      3. Verify that it looks like this:
      4. Add test.php to your moodle web root and view it as YOUR_LOCAL_SITE/test.php
      5. Verify all selects are rendered with a size of 5.
      Show
      Install https://moodle.org/plugins/tool_editrolesbycap Go to Admin -> Users -> Permissions -> Edit roles by capability. Verify that it looks like this: Add test.php to your moodle web root and view it as YOUR_LOCAL_SITE/test.php Verify all selects are rendered with a size of 5.

      It turns out that Boost, and now Classic themes break tool_editrolesbycap (https://moodle.org/plugins/tool_editrolesbycap.

      The select-related templates handle the size attribute wronly. There are usability reasons why sometimes you want size set without multiple (e.g. Moodle groups UI).

        1. image-2019-10-08-10-23-44-858.png
          107 kB
          Janelle Barcega
        2. screenshot-1.png
          22 kB
          Tim Hunt
        3. test.php
          2 kB
          Jake Dallimore

            timhunt Tim Hunt
            timhunt Tim Hunt
            Jake Dallimore Jake Dallimore
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m

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