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

html_writer::select allow for multiple 'nothing' values but these are not actually supported by the auto submission JS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.6, 2.7.3, 2.8.1, 2.9
    • Fix Version/s: Future Dev
    • Component/s: JavaScript
    • Labels:
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE

      Description

      Just been looking at the autosubmit JS which I recently wrote and discovered that html_writer::select() allows for multiple 'nothing' values.

      Nothing values are those options found at the top of the list which usually say something like "Add a new ..."

      However, the JS which automatically submits these selects (url_select and single_select) does not (and never has) supported multiple nothing values.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dobedobedoh Andrew Lyons
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: